SQL*Plus does not open anymore - Oracle Database 18c Express Edition - oracle

I have been using Oracle 18c since March for my college classes. I have always worked using SQLplus. The issue now is that I cannot start SQL*Plus when I tried to start it 2 days before.
When I try to launch it, it opens and closes in less than a second. I tried to open sqlplus via command prompt, but it shows an error saying:
Error 57 initializing SQL*Plus Error loading message shared library
I have no clue what went wrong so I thought re-installing the entire 18c product would solve something. Now that I go for uninstalling Oracle 18c, it shows an error message like shown here
Can someone please suggest me what is going wrong here? I would really like to have the SQLPlus working again like normally it would, so I can complete my DBMS projects.

Related

OLEDB driver have funny performance on VS2019 SSIS Extension

I have an SSIS that using OLE DB to query oracle database.
The query is actually working well. However, I don’t know why I have following funny performance from my SSIS:
I cannot preview my query result on any data flow, it will turn up with OLEDB run into unknown error
Even clicked “save password”, it will still forgot my password as long as I run into the error from step 1.
I am pretty sure I have OLEDB installed for oracle as I can use debug mode to run the entire package. But I just cannot understand why this happens.
May I ask anyone to share any light?
Thanks in advance!

Windows 10 Bootcamp causing issues with Oracle Database 11g XE

I tried twice installing Windows 10 PRO and then installing the Oracle Database 11g XE. Every time, it will cause errors. Exact same issues as this thread here If anyone who has encountered this issue before and was able to resolve it, can you help me? I installed the same software on my Lenovo Laptop running Windows 10 Home and it was able to run it without any problems. So I believe the suspect here is the bootcamp.
Issue I encountered:
Get Started with Oracle Database XE doesnt work. Keeps saying that 127.0.0.1:8080/apex not found on W10 bootcamp. Ran it on windows and opened up the dashboard without any problems.
Ran the sqlplus command in cmd in W10 bootcamp, logged in as SYS AS SYSDBA and spat out this: Connected as an instance which I googled around and meant the database isnt running. Tried it on the windows and was successfully able to log in.
The exact same errors in the link I posted.
Tried creating a connection in the SQLDeveloper and it gave me ORA-12050 error which also means database is not running. Ran it on a windows machine and no errors.
I need it for my Database class and don't want to drag around a bulky laptop to college everyday. If someone could help me out, I would be grateful to you.

Unable to instantiate any file during oracle xe installation

I am trying to install Oracle XE 11g on windows 7,32 bit machine.
The set up process goes fine until the step where the Oracle asks for password setup. Later when the installation starts, I get a pop up that says cannot instantiate the listener.ora file. I say OK, and then try to continue. But, then again, the another pop up says tnsnames.ora cannot be instantiated. This message continues with different file names unable to be instantiated. And finally the set up terminates
Any help in this would be appreciated
Thanks
I too faced the same issue, finally below are the reason for my issue
I did not have full permission to that folder where I am installing Oracle
Make sure the command prompt opened in Admin mode

How to install Procedural Option in Oracle 11gr2

I've been trying to create PL/SQL packages and running procedures on a local installation of Oracle 11gR2 on my computer, and I kept getting ORA-00900 error. Based on this article, it seems like Procedural Option has not been not installed.
This is the output of sqlplus when I logged in:
C:\Users\NgCH>sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 14 13:11:34 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: system#orcl
Enter password:
Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
SQL>
How can I install it? If I've to reinstall Oracle, what are the options I must choose in the installer? I chosen Enterprise Edition, Desktop Class.
Thanks.
Edit:
This is very simple package code I tried to execute in DBeavor (64-bit) v2.0.6, to a local Oracle database with Oracle thin connection:
CREATE OR REPLACE PACKAGE TEST AS
hello_world constant varchar(20) := 'hello world';
END TEST;
Error from DBeavor:
Error occurred during SQL query execution
Reason:
SQL Error [900] [42000]: ORA-00900: invalid SQL statement
I've followed the advice in the comments and learnt that my problem isn't with my Oracle database installation at all.
I was using DBeaver while attempting to run some pl/sql script, and for some reason I don't know it failed with the ORA-00900. After posting the question I ran the same script in Toad for Oracle, and it works without any problem. Running the same script in SQL Plus also works okay.
I don't know what causes the error in DBeaver yet, but at least now I know the error code ORA-00900 does not mean my database is missing any Procedural Option function. In hindsight I probably should have tested my script in SQL Plus first before posting the question.
Anyway, thanks for the comments guys, it really helped me tons.
DBeaver cannot execute PL/SQL as they view it as Oracle specific, which it is. This may be implemented some time in the future.

Oracle 10g express and 11g express DB homepage is not showing up

I just installed Oracle for the first time and the last step of the installer is to ask if I want to check the home page. I checked it, the browser opened a local website, but this website does not exists. So I am simply stuck here.
I tried 10g first, I uninstalled it and tried 11g. I always get a non-running webpage. I tried it because I saw in some answers that 10g was not supported by Windows 7 32 bits and that 11g was.
Each time, I checked if all the Oracle services were up and they are. I also checked if the port 8080 was used and it is not. Also, disabling the Windows firewall gives nothing.
I know nothing about Oracle so please give me some links if you are talking about Oracle specific things.
If you don't know the problem with the website, could you tell me which service is supposed to start the website and were is its logfile so that I could see the error?
Thanks
In a side note, in the project install guide, I am supposed to run "sqlplus system#xe" after Oracle is installed. When I do it, I have to enter the password and then I get "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor". Each questions about that error was about "it worked fine for a week and now no more" which is clearly not my situation, so this is not my question, just a side note.
One of my teammate found the answer. The problem was in the installation and here is what worked:
Warning for Windows7 only:
Oracle 10g installation on windows 7
32-bit completes without error but it is incomplete. In order to fix
the problem, before installing Oracle, shut down your PC, unplug your
network cable, boot your PC and install Oracle (not a joke), and
reconnect only after the installation of Oracle 10g.
That is weird, but it worked
NOTE----This method doesn't worked with 11g express R2 . (ofcourse i am talking of windows 7)
Try this:
1) First, make sure it's running. It sounds like it is from the error message you got in step 2, but double check that the Services (OracleServiceXE and OracleXETNSListener) are both started. Those are the only two services you need, and it does sound like the OracleServiceXE may not be running.
2) Make sure it's not running on a non-8080 port. From a command prompt, run netstat -an and see if anything is listening on port 8080. I've seen it get installed on alternate ports (including 9080) in the past.
3) If there's something listening on port 8080, try http://localhost:8080/ in your browser. If there's something on 9080, try that.
I too faced the same issue and fixed by following the below steps.
go to your Oracle XE 10g console using sqlplus. Replace mypassword with that your SYS user password (as specified during the installation process). Note that the number 2, 3, 4 at the left side is generated by the sqlplus tools prompt (you don't need to type them in).
[sourcecode lang="sql"]
C:\> sqlplus sys/mypassword#xe as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 18 17:53:47 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> begin
2 dbms_xdb.sethttpport('8484');
3 end;
4 /
[/sourcecode]
Oracle XE should reply:
[sourcecode lang="sql"]
PL/SQL procedure successfully completed.
[/sourcecode]
After that check to ensure that the configuration has been changed properly:
[sourcecode lang="sql"]
SQL> select dbms_xdb.gethttpport as "HTTP-Port is " from dual;
[/sourcecode]
You should get a message like this:
[sourcecode lang="sql"]
HTTP-Port is
------------
8484
[/sourcecode]
Exit from sqlplus by typing "exit" at the prompt.
Now restart the PC and check.e same issue.

Resources