Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. sergey@sergey-Bionic:~$ sqlplus SYS/Mail2sergei as SYSDBA
  2.  
  3. SQL*Plus: Release 18.0.0.0.0 - Production on Mon Apr 22 12:42:34 2019
  4. Version 18.3.0.0.0
  5.  
  6. Copyright (c) 1982, 2018, Oracle. All rights reserved.
  7.  
  8. ERROR:
  9. ORA-12547: TNS:lost contact
  10.  
  11.  
  12. Enter user-name:
  13.  
  14. nano .bashrc
  15.  
  16. #ORACLE
  17. export ORACLE_HOME=/u01/app/PROD/product/18c
  18. export ORACLE_SID=XE
  19. export ORACLE_BASE=/u01/app/PROD
  20. export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
  21. export PATH=$ORACLE_HOME/bin:$PATH
  22. #ORACLE
  23.  
  24. sergey@sergey-Bionic:~$ nano /u01/app/PROD/product/18c/network/admin/tnsnames.ora
  25. # tnsnames.ora Network Configuration File: /home/sergey/Downloads/ORACLE_10/network/admin/tnsnames.ora
  26. # Generated by Oracle configuration tools.
  27.  
  28. LISTENER_ORCL =
  29. (ADDRESS = (PROTOCOL = TCP)(HOST = sergey-Bionic)(PORT = 1522))
  30.  
  31.  
  32. sergey@sergey-Bionic:~$ nano /u01/app/PROD/product/18c/network/admin/listener.ora
  33.  
  34. # listener.ora Network Configuration File: /home/sergey/Downloads/ORACLE_10/network/admin/listener.ora
  35. # Generated by Oracle configuration tools.
  36.  
  37. LISTENER =
  38. (DESCRIPTION_LIST =
  39. (DESCRIPTION =
  40. (ADDRESS = (PROTOCOL = TCP)(HOST = sergey-Bionic)(PORT = 1522))
  41. (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
  42. )
  43. )
  44.  
  45. sergey@sergey-Bionic:~$ nano /u01/app/PROD/product/18c/network/admin/sqlnet.ora
  46.  
  47. # sqlnet.ora Network Configuration File: /home/sergey/Downloads/ORACLE_10/network/admin/sqlnet.ora
  48. # Generated by Oracle configuration tools.
  49.  
  50. NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
  51.  
  52.  
  53. oracle@sergey-Bionic:~$ lsnrctl start
  54.  
  55. LSNRCTL for Linux: Version 18.0.0.0.0 - Production on 22-APR-2019 13:05:13
  56.  
  57. Copyright (c) 1991, 2018, Oracle. All rights reserved.
  58.  
  59. Starting /u01/app/PROD/product/18c/bin/tnslsnr: please wait...
  60.  
  61. TNSLSNR for Linux: Version 18.0.0.0.0 - Production
  62. Log messages written to /u01/app/PROD/diag/tnslsnr/sergey-Bionic/listener/alert/log.xml
  63. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sergey-Bionic)(PORT=1521)))
  64.  
  65. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
  66. STATUS of the LISTENER
  67. ------------------------
  68. Alias LISTENER
  69. Version TNSLSNR for Linux: Version 18.0.0.0.0 - Production
  70. Start Date 22-APR-2019 13:05:13
  71. Uptime 0 days 0 hr. 0 min. 0 sec
  72. Trace Level off
  73. Security ON: Local OS Authentication
  74. SNMP OFF
  75. Listener Log File /u01/app/PROD/diag/tnslsnr/sergey-Bionic/listener/alert/log.xml
  76. Listening Endpoints Summary...
  77. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sergey-Bionic)(PORT=1521)))
  78. The listener supports no services
  79. The command completed successfully
  80. oracle@sergey-Bionic:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement