Advertisement
fkeles

copy-wallet-and-connect-adb-sqlplus.sh

Sep 22nd, 2023
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | Source Code | 0 0
  1. ## copy wallet to local directory
  2. ubuntu@FAKELES-7310:~$ podman cp adb_container:/u01/app/oracle/wallets/tls_wallet adb_wallets/tls_wallet
  3. ## Set TNS_ADMIN
  4. ubuntu@FAKELES-7310:~$ export TNS_ADMIN=/home/ubuntu/adb_wallets/tls_wallet
  5. ## connect to database
  6. ubuntu@FAKELES-7310:~$ sqlplus admin@my_atp_low
  7.  
  8. SQL*Plus: Release 19.0.0.0.0 - Production on Fri Sep 22 19:44:08 2023
  9. Version 19.16.0.0.0
  10.  
  11. Copyright (c) 1982, 2022, Oracle.  All rights reserved.
  12.  
  13. Enter password:
  14. Last Successful login time: Fri Sep 22 2023 19:33:42 +02:00
  15.  
  16. Connected to:
  17. Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
  18. Version 19.20.0.1.0
  19.  
  20. SQL> select name from v$database;
  21.  
  22. NAME
  23. ---------
  24. POD1
  25.  
  26. SQL>
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement