Showing posts with label oracle. Show all posts
Showing posts with label oracle. Show all posts
Monday, August 1, 2022
How to drop other schema’s Database link using SYS user | Drop db_link from other user
SQL> select owner,db_link from dba_db_links;
OWNER DB_LINK
------------------------------ --------------------------------------
TEST TEST_DB_LINK
SQL> sho user
USER is "SYS"
SQL>
SQL> drop database link test.test_db_link;
drop database link test.test_db_link
*
ERROR at line 1:
ORA-02024: database link not found
[test@test.test.com ~]$ cat drop_schema_dblink.sh
username=$1
db_link=$2
sqlplus /nolog < SQL> Connected.
SQL> " DB Link Before Drop"
SQL> SQL> SQL>
OWNER DB_LINK
------------------------------ ------------------------------
TEST TEST_DB_LINK
SQL> 2 3 4 5
Procedure created.
SQL>
PL/SQL procedure successfully completed.
SQL>
Procedure dropped.
SQL> " DB Link After Drop"
SQL>
no rows selected
SQL>
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
!
Wednesday, March 2, 2022
CREATE PASSWORD FILE IN ASM DISK GROUP
FOR ORACLE 12C ONLY
ASMCMD> pwcreate –dbuniquename {db_unique_name} {file_path} {sys_password}
ASMCMD> pwcreate –dbuniquename PRDPRE +DATA/PWDFILE/pwdPRDPREoracle
FOR ALL VERSION
orapwd file=’+DATA/orapwPRODPRE’ ENTRIES=10 DBUNIQUENAME=’PRODPRE’
https://docs.oracle.com/database/121/OSTMG/GUID-2ACBBB1E-A39D-473E-A9EF-E7BC3872C36E.htm
Subscribe to:
Comments (Atom)
ewallet p12 vs cwallet sso
The ewallet.p12 stores credentials and certificates protected by a user password, while cwallet.sso provides an obfuscated, random passw...