oracle
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| oracle [2025/07/03 10:38] – [Sessions (to kill?)] mduersch | oracle [2026/07/14 10:24] (current) – [Dataguard related] mduersch | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== ORACLE ====== | ====== ORACLE ====== | ||
| + | |||
| + | ==== EMCC ==== | ||
| + | |||
| + | oracle@mytesthost:/ | ||
| + | Oracle Enterprise Manager 24ai Release 1 | ||
| + | Copyright (c) 1996, 2024 Oracle Corporation. | ||
| + | --------------------------------------------------------------- | ||
| + | EMD runCollection completed successfully | ||
| + | |||
| + | oracle@mytesthost:/ | ||
| + | Oracle Enterprise Manager 24ai Release 1 | ||
| + | Copyright (c) 1996, 2024 Oracle Corporation. | ||
| + | --------------------------------------------------------------- | ||
| + | EMD upload completed successfully | ||
| + | |||
| + | ==== CDB PDB ==== | ||
| + | |||
| + | Befehle | ||
| + | SHOW CON_NAME | ||
| + | ALTER SESSION SET CONTAINER=pdb1; | ||
| + | SELECT NAME, CON_ID, DBID, CON_UID, GUID FROM V$CONTAINERS ORDER BY CON_ID; | ||
| + | SELECT PDB_ID, PDB_NAME, STATUS FROM DBA_PDBS ORDER BY PDB_ID; | ||
| + | SELECT NAME, OPEN_MODE, RESTRICTED, OPEN_TIME FROM V$PDBS; | ||
| + | |||
| + | ==== ACLs ==== | ||
| + | |||
| + | ACLs abfragen: | ||
| + | |||
| + | SET LINESIZE 150 | ||
| + | COLUMN host FORMAT A40 | ||
| + | COLUMN acl FORMAT A50 | ||
| + | SELECT host, lower_port, upper_port, acl | ||
| + | FROM | ||
| + | ORDER BY host; | ||
| + | |||
| + | |||
| + | |||
| + | SET LINESIZE 150 | ||
| + | COLUMN acl FORMAT A50 | ||
| + | COLUMN principal FORMAT A20 | ||
| + | COLUMN privilege FORMAT A10 | ||
| + | SELECT acl, | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | FROM | ||
| + | ORDER BY acl, principal, privilege; | ||
| + | |||
| + | Source: https:// | ||
| ==== Spool ==== | ==== Spool ==== | ||
| Line 40: | Line 91: | ||
| or network_service_banner like ' | or network_service_banner like ' | ||
| and TYPE <> ' | and TYPE <> ' | ||
| + | |||
| + | ==== Audit Trail ==== | ||
| + | |||
| + | SELECT os_username AS "OS User", | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | FROM dba_audit_session | ||
| + | WHERE returncode != 0 ORDER BY timestamp DESC; | ||
| ==== Grants by User ==== | ==== Grants by User ==== | ||
| Line 322: | Line 383: | ||
| ==== Dataguard related ==== | ==== Dataguard related ==== | ||
| + | | ||
| + | | ||
| | | ||
| | | ||
| Line 339: | Line 402: | ||
| | | ||
| | | ||
| + | |||
| + | # Anfragen | ||
| + | col DB_UNIQUE_NAME for a10 | ||
| + | col OPEN_MODE for a20 | ||
| + | col DATABASE_ROLE for a20 | ||
| + | col LOG_MODE for a10 | ||
| + | set lines 200 | ||
| + | | ||
| + | |||
| + | # Transport log | ||
| + | | ||
| + | |||
| + | |||
| + | |||
| # Paramter abfragen | # Paramter abfragen | ||
| | | ||
| Line 532: | Line 609: | ||
| | | ||
| | | ||
| + | # flashbackquery | ||
| + | | ||
| + | AS OF TIMESTAMP TO_TIMESTAMP(' | ||
| + | | ||
| + | | ||
| ==== GRANTS ==== | ==== GRANTS ==== | ||
oracle.1751539130.txt.gz · Last modified: by mduersch
