Blog with ORACLE related posts (mainly PL/SQL programming) and some personal thoughts
Blog com artigos sobre ORACLE (principalmente sobre programação PL/SQL) e alguns pensamentos pessoais.
2008-02-13
2008-02-12
Database Cluster information
Script to get the database cluster information:
Output example:
SET SERVEROUTPUT ON
BEGIN
IF DBMS_UTILITY.is_cluster_database
THEN
DBMS_OUTPUT.put_line ('Clustered');
DBMS_OUTPUT.put_line ( 'Connect to instance:'
|| DBMS_UTILITY.current_instance
);
<<instances>>
DECLARE
ltab_instance_table DBMS_UTILITY.instance_table;
li_instance_count PLS_INTEGER;
BEGIN
DBMS_UTILITY.active_instances
(instance_table => ltab_instance_table
,instance_count => li_instance_count
);
FOR i IN 1 .. li_instance_count
LOOP
DBMS_OUTPUT.put_line ( ltab_instance_table (i).inst_number
|| ' = '
|| ltab_instance_table (i).inst_name
);
END LOOP;
END INSTANCES;
ELSE
DBMS_OUTPUT.put_line ('Not Clustered');
END IF;
END;Output example:
Clustered
Connect to instance:1
1 = orainst1:ORA1
2 = orainst2:ORA2
3 = orainst3:ORA3
Categorias / Labels:
Oracle Blues,
Oracle DB,
PL/SQL
General Elevator 5 e 6
Episódio 5
Episódio 6
Actualização: foram actualizados os videos pois o local original já não funciona.
Episódio 6
Actualização: foram actualizados os videos pois o local original já não funciona.
Vai uma pausa?
Três pequenos musicais humoristicos:
"A short musical about workers who become agitated when they discover their food missing from the office refrigerator."
Lunch Misérables
"(...) demonstrates the importance of protecting our children from dangerous online predators"
Web Site Story
Senator Craig's New Music Video
"A short musical about workers who become agitated when they discover their food missing from the office refrigerator."
Lunch Misérables
"(...) demonstrates the importance of protecting our children from dangerous online predators"
Web Site Story
Senator Craig's New Music Video
versão digital do Oracle Magazine March/April 2008
Encontra-se disponivel a versão digital do Oracle Magazine de March/April 2008
Categorias / Labels:
Leituras,
Oracle Blues,
Oracle DB,
PL/SQL
Links for Oracle
In sequence of a previous post with links to Steven Feuerstein related resources I leave here some of my list of Oracle links.
History of Oracle
Metalink Official support (extra cost)
Oracle Technology Network(OTN) articles, sample code, downloads, forums
AskTom forum by Thomas Kyte
Oracle Magazine
Oracle database official documentation
Oracle Server Technologies Curriculum online tutorials
Oracle Express Edition Free Version of the DB
Free Development Environments
APEX
SQL Developer
JDeveloper
History of Oracle
Metalink Official support (extra cost)
Oracle Technology Network(OTN) articles, sample code, downloads, forums
AskTom forum by Thomas Kyte
Oracle Magazine
Oracle database official documentation
Oracle Server Technologies Curriculum online tutorials
Oracle Express Edition Free Version of the DB
Free Development Environments
APEX
SQL Developer
JDeveloper
Categorias / Labels:
Apex,
Leituras,
Oracle Blues,
Oracle DB,
PL/SQL
2008-02-11
Count Rows in each table
Sometimes we what to know which is the table that has more rows.
That could be archived easily by the following query
That could be archived easily by the following query
select table_name, num_rows FROM user_tables ORDER BY num_rows desc nulls last
Categorias / Labels:
Oracle Blues,
PL/SQL
Cuidado com pagamentos MB na ZARA ou via UNICRE
Já é noticia de Novembro passado mas eu não sabia
Fica aqui o aviso!
Fica aqui o aviso!
PL/Vision: new version needed?
I have a new goal. To try to put PL/Vision at a new stage: an 10g and 11g version.
I try to install it in my 10.2 version and I got a compilation error.
For now here are the changes I made in the code
Compilation error:
comment line 50 and 51 of PLVEXEC package specification
Unnecessary code:
comment line 162 of PLVEXEC package body
comment line 350, 351 of PLVEXEC package body
I try to install it in my 10.2 version and I got a compilation error.
For now here are the changes I made in the code
Compilation error:
comment line 50 and 51 of PLVEXEC package specification
-- no_such_table EXCEPTION;
-- PRAGMA EXCEPTION_INIT (no_such_table, -942);Unnecessary code:
comment line 162 of PLVEXEC package body
-- ELSIF code_in = -942 THEN RAISE PLVexc.no_such_table;comment line 350, 351 of PLVEXEC package body
-- logit BOOLEAN := FALSE;
-- showit BOOLEAN;
Categorias / Labels:
Bug,
Oracle Blues,
PL/SQL
2008-02-08
PL/SQL standards
Some links for PL/SQL standards documents
http://www.redhat.com/docs/manuals/waf/rhea-dg-waf-en-6.0/ap-sql-standards.html
http://www.orafaq.com/faqplsql.htm
http://www.orafaq.com/node/48
http://www.bbc.co.uk/guidelines/newmedia/technical/databases.shtml
http://www.williamrobertson.net/documents/plsqlcodingstandards.html
http://docs.online.bg/DB/Oracle_8_Automation/appendix-d.html
http://www.oreilly.com/catalog/oraclep2/chapter/ch03.html
http://apex.oracle.com/pls/otn/f?p=2853:4:548429873816108::NO::P4_QA_ID:3262
http://www.oreview.com/9701ault.htm
http://www.redhat.com/docs/manuals/waf/rhea-dg-waf-en-6.0/ap-sql-standards.html
http://www.orafaq.com/faqplsql.htm
http://www.orafaq.com/node/48
http://www.bbc.co.uk/guidelines/newmedia/technical/databases.shtml
http://www.williamrobertson.net/documents/plsqlcodingstandards.html
http://docs.online.bg/DB/Oracle_8_Automation/appendix-d.html
http://www.oreilly.com/catalog/oraclep2/chapter/ch03.html
http://apex.oracle.com/pls/otn/f?p=2853:4:548429873816108::NO::P4_QA_ID:3262
http://www.oreview.com/9701ault.htm
Categorias / Labels:
Apex,
Best Practices,
Oracle Blues,
PL/SQL
Subscribe to:
Posts (Atom)