This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Until explicitly disabled, it will track sql statements with parsing errors. | |
| SQL> alter system set events '10035 trace name context forever, level 1'; | |
| Levels: | |
| level 1+ Print out user SQL statements | |
| level >3 Print out recursive SQL | |
| level >5 Print out row cache cached cursor stats | |
| Turning off : | |
| SQL> alter system set events '10035 trace name context off'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * Problematic config | |
| [oracle@exadb01 ~]$ srvctl config asm | |
| ASM home: <CRS home> | |
| Password file: +DATA/orapwASM | |
| Backup of Password file: +RECO/orapwasm_backup | |
| ASM listener: ---> This attribute should not be empty. | |
| ASM instance count: ALL | |
| Cluster ASM listener: ASMNET1LSNR_ASM | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [oracle@exadb03 ~]$ srvctl modify asm -listener LISTENER | |
| PRKO-2207 : Warning:-listener option has been deprecated and will be ignored. | |
| [oracle@exadb01 trace]$ srvctl config asm -proxy -detail | |
| ASM home: <CRS home> | |
| ADVM proxy is enabled | |
| ADVM proxy is individually enabled on nodes: | |
| ADVM proxy is individually disabled on nodes: | |
| Spfile: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| 01-APR-2022 10:57:20 * (CONNECT_DATA=(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=oracle))(SID=+APX1)) * (ADDRESS=(PROTOCOL=tcp)(HOST=XXX.XXX.XXX.XXX)(PORT=40650)) * establish * +APX1 * 12505 | |
| TNS-12505: TNS:listener does not currently know of SID given in connect descriptor | |
| 2022-04-01T10:57:23.208266+03:00 | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * Correct one | |
| [oracle@s001db01 u02]$ crsctl stat resourcegroup ora.asmgroup -p | |
| NAME=ora.asmgroup | |
| TYPE=ora.asmgroup.gtype | |
| ... | |
| START_DEPENDENCIES=weak(global:ora.gns,ora.LISTENER.lsnr) dispersion:active(site:type:ora.asmgroup.gtype) | |
| START_DEPENDENCIES_RTE_INTERNAL=<xml><Arg name="crslistener" type="ResList">ora.LISTENER.lsnr</Arg></xml> | |
| START_DEPENDENCIES_TEMPLATE=<xml>weak(global:ora.gns,<ResList>{crslistener}</ResList>) dispersion:active(site:type:ora.asmgroup.gtype)</xml> | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [oracle@exadb03 ~]$ crsctl modify resourcegroup ora.asmgroup -attr "START_DEPENDENCIES='weak(global:ora.gns,ora.LISTENER.lsnr) dispersion:active(site:type:ora.asmgroup.gtype)'" -unsupported | |
| [oracle@exadb03 ~]$ crsctl modify resourcegroup ora.asmgroup -attr "START_DEPENDENCIES_RTE_INTERNAL='<xml><Arg name=\"crslistener\" type=\"ResList\">ora.LISTENER.lsnr</Arg></xml>'" -unsupported | |
| [oracle@exadb03 ~]$ crsctl modify resourcegroup ora.asmgroup -attr "AUTO_START='always'" -unsupported |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SQL> SELECT sql_id, sql_text FROM gv$sql b where plan_hash_value=44909958; | |
| SQL_ID SQL_TEXT | |
| ------------- ---------------------------------------------------------------------------------------------------------------------------------------- | |
| ... | |
| 6uzsj5a6b007x select sum(BLOCKS) from DBA_SEGMENTS where segment_name='SYS_FBA_DDL_COLMAP_85287' and owner='XXXX' and TABLESPACE_NAME='USERS_XXX' | |
| 193rca1sdh0n0 select sum(BLOCKS) from DBA_SEGMENTS where segment_name='SYS_FBA_HIST_1584811' and owner='YYYY' and TABLESPACE_NAME='USERS_XXX' | |
| 4xnnvvkkcn1m3 select sum(BLOCKS) from DBA_SEGMENTS where segment_name='SYS_FBA_TCRV_IDX_84869' and owner='ZZZZ' and TABLESPACE_NAME='USERS_XXX' | |
| gxskkznf5s057 select sum(BLOCKS) from DBA_SEGMENTS where segment_name='SYS_FBA_TCRV_1584668' and owner='TTTT' and TABLESPACE_NAME='USERS_XXX' | |
| 79k6129w542gr select sum(BLOCKS) from DBA_SEGMENTS where s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SQL> SELECT | |
| sq.sql_id, | |
| sq.parsing_schema_name as schema | |
| sq.service, | |
| ses.program, | |
| ses.sample_time | |
| FROM | |
| v$sql sq, | |
| v$active_session_history ses | |
| WHERE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLESPACE USERS_TEST | |
| DATAFILE '+DATA' SIZE 12G; | |
| CREATE FLASHBACK ARCHIVE FDA_TEST TABLESPACE USERS_TEST QUOTA 512 M RETENTION 1 DAY; | |
| ALTER USER HR | |
| QUOTA 10G ON USERS_TEST; | |
| BEGIN | |
| FOR C1 IN 1..100 LOOP |