v$version still showing 9i in sql developer after upgrade to 10g - oracle

I was working on Oracle 9i. I got it upgraded to 10g 3 hr. back. But when I query v$version to check the version in SQL Developer, it shows Oracle 9i.
Could you please let me know if I need to modify any settings in the SQL Developer tool to reflect the upgraded version?
Thanks,
Savitha

If you are referring to a client upgrade, you can get the Oracle Home being used by SQL Developer by clicking Help->About->Properties and checking the value for oracle.home. Usually the name of the Oracle Home will give you an indication of the version of Oracle that you are using. If not, navigate to the BIN directory in ORACLE HOME and execute sqlplus /nolog.

Related

Sql developer problem. No ocijdbc21 in java.library.path

So I downloaded Oracle 19c DBMS. Then I downloaded Sql Developer. When I try to add a new connection, I get the message
How do I get past this. I have seen some other threads on this but none of the solutions that I understand seem to fix it. I need to keep the connection type as local. Is there somewhere I can go and just adjust this path?
EDIT
I used just a basic connection and the name database name in the service name box and it worked. The initial setup instructions I had were dated and not set up for 19c. One of the comments in the answer below suggested this.
For 20.4.1 and bequeath connection you must have a 21c instant client as we're using a 21c jdbc driver.
If you're not on Linux, that means you'll need version 20.4.0 so you can use a 19c Instant Client.
Windows 21c Clients should be available later this Summer.
Edit/Update: Version 21.2.1 now supports 19c and 21c Clients. 21c Instant Clients are rolling out across supported platforms. Currently avail for Linux, soon to include Windows and OS X.
In my case, the DB connection changed from Network Alias to Connect Identifier post a company pushed update, simple fix after hours /days of trouble shooting.
enter image description here
Ran into this error with Oracle SQL Developer and the fix for us was to in Oracle SQL Developer:
Tools -> Preferences
In the tree view on the left Expand Database and select Advanced
In Use Oracle Client click Configure...
Set the path to your Oracle home (should looks something like C:\Path\To\Oracle\19.n)
Check the Use Oracle Client box
In the Tnsnames Directory set it to the folder containing the tnsnames.ora file (should looks something like C:\Path\To\Oracle\19.n\network\admin)
Click OK
Relaunch Oracle SQL Developer

SQL Developer failing to open table in old db version

We've connected to an old 9i database with SQL Developer 18.2, and every table we attempt to open the description of returns the following, instead of displaying data/indexes/constraints etc.
A manual DESC table_name works, and there are no exotic column types.
Is there a switch we need to make to make SQL Dev backwards compatible? Can we use an older version of SQL developer as a workaround?
No way, as far as I can tell. SQL Developer works on supported database versions which is now ... what, 11g and above? I'm afraid that you'll have to use lower tool version for lower database version(s).
As there's no really an "installation", you can unzip 4.x SQL Developer (which works with 9i, but also works with (again - as far as I can tell) at least 12c) into some directory, put its icon onto the desktop and use it whenever you have to work with 9i.
Use your current SQL Developer for more recent database versions, if you have to use some of its capabilities that don't exist in 4.x.

Why can't I set QUERY_REWRITE_ENABLED to TRUE?

I'm trying to create a materialized view for a Oracle database but I'm getting this error:
I've tried to alter the session and the system with "alter session set QUERY_REWRITE_ENABLED = TRUE; " but nothing worked.
Any idea what might be going wrong?
My code is:
create materialized view First
refresh complete on commit
enable query rewrite
as
select id,user_id
from answers;
The OP clarified that she is using the Express Edition. With that said:
Do a search on https://docs.oracle.com/database/121/DBLIC/editions.htm#DBLIC110 for the search word "rewrite". You will find that query rewrite is only available in the Enterprise Edition. By the way, if you are just learning, you are allowed to install and use the Enterprise Edition for free. Not so, however, for commercial use.
(The link provided is for Oracle Database version 12.1. The current version available in Express Edition is 11.2; you can find the corresponding documentation for the Oracle 11.2 editions, including the Express edition, with a Google search on "Oracle 11.2 Oracle database editions".)

Error while installing Oracle Apex

I want to install Oracle Apex 5.1.1 in my Oracle 11g database. While installing it was not properly installed so I uninstalled it. I cross checked it with dba_registry table that there is no more Oracle Apex installed. But when I tried to install it again I am getting an error that already there is an Oracle Apex installed. I crossed checked again with db_registry table but there is no Oracle Apex installed.
I am getting the error:
'APEX_050100' already exists.
When I checked in the dba_segments table I found there is an owner 'APEX_050100'. I don't know if this is creating issue.
I have a database connections between local and production region which is in a different virtual machine. Both are having same username and password. The production one has Oracle Apex installed. I am trying to install the Oracle Apex in my local one.
You can try running the #apxremov.sql script before installation starts. This script is used to remove all currently installed versions of Oracle Apex from the database.
Oracle APEX will definitely work on Oracle 11. Just run #apxremov.sql as sysdba within APEX directory (on the server) and you'll be good to reinstall it.
First of all Apex 5 will not work on Oracle 11, it only works on 12. The problem you are having is due to existing schema, possibly a failed installation. See Apex docs for "failed installation" removal step.

I have problem to connect oracle DB with SQL developer

I try connect to my oracle db with oracle SQL developer and received that message:
pic (pictures 1 and 2)
if i try connect with sql plus, all well.
command : select userenv('LANGUAGE') from dual;
result:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select userenv('LANGUAGE') from dual;
*USERENV('LANGUAGE')
----------------------------------------------------
RUSSIAN_RUSSIA.CL8MSWIN1251*
in SQL DEVELOPER:
(picture 3)
check\uncheck "Skip NLS Settings", nothing changed.
what the issue is?
I've seen this problem before in an installation with Oracle 10g on AIX. The problem was that NLS files weren't accessible due to wrong file protection.
The problem is most likely not with SQL Developer but on the server side. When you log in, the server will always try to set regional settings that match the one on your client. That's when the error occurs because the required files aren't accessible.
If you haven't already I think it might be worth asking this question in the OTN SQL Developer Forum
I suspect you installed the Western European edition instead of the Universal. If that's not the case, post the file list from the nls/data directory.

Resources