Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm really green, so please bear with me :) me and my friend are working on educational project, which is working in oracle. We started to use physical machine for it and when we finished, I decided to transfer everything to virtual machine, but database does not work anymore. Physical server is is still working, but I need to free it up for other project.

There are two DBs, projectdb and prpdb1. I can login to projectdb, but I cannot login to another one, where all the data is located.

P.S.
My friend did all the DB heavy-lifting, but now he is unavailable :( anyway I want to figure it out myself if possible.

What I have tried:

I tried to dig a little bit and found that listener is missing some services (?).

This is log from working system:
LSNRCTL for 64-bit Windows: Version 18.0.0.0.0 - Production on 28-AUG-2019 17:53:12

Copyright (c) 1991, 2018, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PROJECTSRV)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 18.0.0.0.0 - Production
Start Date                23-AUG-2019 20:11:18
Uptime                    4 days 21 hr. 41 min. 54 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   C:\oracle\product\18.0.0\18c_db_home\network\admin\listener.ora
Listener Log File         C:\oracle\diag\tnslsnr\PROJECTSRV\listener\alert\log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PROJECTSRV)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=PROJECTSRV)(PORT=5500))(Security=(my_wallet_directory=C:\ORACLE\admin\projectdb\xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "8f03327008c8482c9d6d8ce691bc99e3" has 1 instance(s).
  Instance "projectdb", status READY, has 1 handler(s) for this service...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "ecee1487c3dd4c18a9b2d4e021bdd655" has 1 instance(s).
  Instance "projectdb", status READY, has 1 handler(s) for this service...
Service "projectdb" has 1 instance(s).
  Instance "projectdb", status READY, has 1 handler(s) for this service...
Service "projectXDB" has 1 instance(s).
  Instance "projectdb", status READY, has 1 handler(s) for this service...
Service "prpdb1" has 1 instance(s).
  Instance "projectdb", status READY, has 1 handler(s) for this service...
The command completed successfully


This is what is left after virtualisation:
LSNRCTL for 64-bit Windows: Version 18.0.0.0.0 - Production on 28-AUG-2019 18:10:35

Copyright (c) 1991, 2018, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PROJECTSRV)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 18.0.0.0.0 - Production
Start Date                28-AUG-2019 18:07:02
Uptime                    0 days 0 hr. 3 min. 37 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   C:\oracle\product\18.0.0\18c_db_home\network\admin\listener.ora
Listener Log File         C:\oracle\diag\tnslsnr\PROJECTSRV\listener\alert\log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PROJECTSRV)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "projectdb" has 1 instance(s).
  Instance "projectdb", status READY, has 1 handler(s) for this service...
The command completed successfully
Posted
Updated 29-Aug-19 2:23am

I fixed it somehow, if anybody needs to know, here is what I did:

sqlplus /as sysdba

SQL>ALTER DATABASE RECOVER;

Database altered.

SQL>ALTER DATABASE OPEN;

Database altered.


At lease this worked for me and now I can connect to both DBs.

Thank you.
 
Share this answer
 
v2
Comments
Maciej Los 29-Aug-19 8:55am    
Great!
Upvoted ;)
 
Share this answer
 
Comments
4bakra 28-Aug-19 13:34pm    
Thanks for reply, I've red all those articles, but could not fix the issue...
Maciej Los 28-Aug-19 13:51pm    
What's virtual machine?
4bakra 29-Aug-19 4:56am    
Vmware workstation 15
Maciej Los 29-Aug-19 5:03am    
Seems, you need to find someone, who knows how to set up Oracle server on VMWare workstation 15.
Sorry, i know nothing about VMWare Workstation.
4bakra 29-Aug-19 5:11am    
I can change to virtual box if it helps...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900