Oracle error ORA-25188 spontaneously appearing for unknown reasons - oracle

A remote installation of some software using Oracle 11.2 is being reported with the following errors:
ORA-25188: cannot drop/disable/defer the primary key constraint for
index-organized tables or sorted hash cluster
These errors seem to be happening everywhere. Even for basic inserts. As far as I can tell, I don't drop or alter any indexes in my IOT tables. And I've never had any issues like this in the past few years (the software hasn't changed much). The other thing I should mention is that these errors just started popping up after several days of error-free activity.
So I got a dump of the entire schema. I then imported it into my own Oracle system, and connected my application to it. Everything works fine! I don't have easy access to the actual system, so I am not able to investigate directly.
Is there any indirect reason why the system could be generating ORA-25188 or some bad state that could cause this error?

Try to PURGE RECYCLEBIN or PURGE DBA_RECYCLEBIN, this can help in some situations.
For second variant you must logon as sysdba.

Related

What is suitable Oracle's DB XE version for practice ?, and errors in version 21c

i have some problem with the Oracle DB XE version 21c.
i use it on my laptop to follow a data lab course in my campus
at first usage i try at the campus computer and works normally. but when i download
and install on my laptop (ofc for practice and homework), i encountered some problems
like : username should use "c##" prefix (i avoid using _oracle_script=true
as others recommend)then i got problem when adding select permission to my account via system user,
like i wrote here : grant select on HR.EMPLOYEES to c##SI0x_xxx;
and cmd throws error ORA-00942: table or view does not exist but when i creating an account + schema on my campus's computer it's worked without throws any error.
i also try to drop and re-create the user using system account but nothing worked.
for detail i put the version used on this case.
my laptop uses Oracle's DB Express Edition version 21c (21.3.0.0.0)
the campus computer uses an Oracle's DB version 10 (sorry i forgot to write exact version).
at the end i assuming the 21c version not have "HR.EMPLOYEE" table, then i need some helpto find best version to practice.Thanks, and i'am have to say sorry if i did some mistakes and poor at english writing.
[UPDATE]
i ended to choose 10 or 11g later as my lecturer recommends.
when at version 21c i just getting more problem because this is the first time i use this program and also kinda busy to try it more.
also thanks to anyone who answer thisit's helpful to get some info to try it with newer version if needed.
Oracle 21cXE doesn't contain the HR schema, so you'll have to install it first. Because, grant you ran failed as that table (nor user) exists.
Have a look at Installation of the Sample Schemas document which contains more information.
Once you install HR, connect as HR (no need to use SYSTEM for that) and grant privileges to your newly created user.
Alternatively, why wouldn't you use HR schema directly? It is on your laptop, there's nothing you can spoil (and even if you did, just re-create it).

Database Configuration Assist stuck at 36% while creating database

I am creating a new database using Database Configuration Assistant.
It is a Typical Installation
The process is stuck on step 4/5.
I am using oracle database 19c.
I am posting this after waiting for 2 hours. Please advise me on how can I fix this :-)
Down you have loacation of DBCA log directory and databases alert.log.
Most likely db creation failed due to some prerequisities (space, OS limits, ...).
Check alert log first, then check most recently modified file on DBCA directory.
Also, if you're installing on Linux, 19c is nearly 3 years old, lot of things changed since then. runInstaller has an option applyRU.
In worst case you will have to download recent RU(release update) patchset and let installer apply this patch before starting actual installation.

Is there an editor out there that allows me to test PL/SQL scripts without a connection?

I work at a facility that does not allow me access to a Oracle Database offsite. So I can't connect to the server through a Oracle client connection right now, because of COVID I'm forced to work from home.
I'm required right now to write a PL/SQL script that will update records across the entire database, however I don't know anything about setting up a test environment on my home computer so that I can run the script in a controlled environment to test it before I bring it back on site.
At one of my previous jobs, they had a PROD, PREPROD, and so forth copies of Oracle databases that one could run the script on before I sent it up the chain to production. The setup we're using doesn't have that, just the production database and thus we have the problem with our workflow that we have one shot to get it right.
So my question is, is there an editor out there for Oracle that will allow me to create a test database, so that I can run the script on that, see the results, edit it to make it work right, before I bring it back to work and run it on our production server? I'm opposed to installing a full Oracle database implementation on my own computer for licensing reasons and/or honestly I don't know what I'm doing setting up an Oracle server on my own (Tried it, couldn't even find documentation on it).
Oracle Express Edition (XE) is free so - no licensing reasons here.
If you want, you can download pre-configured Virtual Box machine which has the database already installed, along with SQL Developer GUI tool to access it so you're up and running in a matter of minutes.
Alternatively, create an account on https://apex.oracle.com/en/; it is also free, gives you certain quota (was 25MB, don't know how much is it now, possibly somewhat more than that) which is enough to try your queries.
Or, use https://dbfiddle.uk/
As you can see, there are various options; pick the one that suits you best.

Oracle DataAccess Error - Object reference not set to an instance of an object

We have one user (a developer) who is experiencing issues with Oracle DataAccess based on whether they are setup as a local administrator on their PC or not.
I dont know the inner workings of Oracle, so im really struggling to figure this one out. My research seems to suggest the problem is around the oracle.dataaccess.dll and maybe linked to the fact that they have Visual Studio 2012 installed.
If the user is configured as a local administrator on thier PC, and they try to run an application they get the following error:
'Object reference not set to an instance of an object.
Source: Oracle.DataAcess.GetData.GetUserPermissions.wsMS_load
If they are NOT an administrator, the application runs (but they have other problems related to not being as admin - they need admin permissions).
I have a feeling it is something to do with Oracle trying to look at the incorrect version of the .dll. I have read some things about accessing the GAC and getting Oracle to reference a different version of the .dll, but as this stuff does not mean a lot to me I am getting out of my depth.
Your help is appreciated!
I have seen problems with running as admin -vs- a restricted account in the past.
The problems I have seen are related to permissions of oracles install directory on the machine. The quickest way to test for this problem is to tnsping your database using both users on the machine.
If one of them fails they most likely don't have rights to see libraries and config.
However, I have never seen this error message in association with this.
I would have the developer narrow down his code to a few lines that reproduce the problem and then edit the question with those lines. It would greatly increase your chances of get a resolution to the problem.
I had the exact same problem with a VS 2012 and oracle.dataAccess.dll In a software my team developed. When looking dipper to the code and spending lots of hours configuring all kinds of stuff eventually turns out it was a compiling error due to a 64x/86x bit mismatch. Your exception is quite general but I hope this works for you too.

InitialLOBFetchSize = -1 crashes app pool

We have a few Oracle customers and we noticed a good performance increase by setting InitialLOBFetchsize to -1. It works really well on one customers database but we have another one where it is causing the app pool to crash. If I take out that line and leave it to default, the app pool does not crash. We are running both databases in the same environment, so I am wondering what could cause the one database to crash whereas the other one is fine with this setting?
Is there some type of parameter that could be causing the issue within the bad customers database?
Had the same problem. Check your Oracle.DataAccess.dll version. Mine was 4.112.2.0 and then I upgraded it to 4.112.3.0 and that fixed the issue.

Resources