I was working on upgrade Oracle from 11g to 19c recently, I upgrade my laptop from Win7 to Win10 and finally installed Oracle successfully, then I create tablespace and tables, now I can access them from both sqlplus/plsql.
We have an old system developed by asp.net web form, it use System.Data.OracleClient, after upgraded to Win10, it doesn't work so I use Oracle.ManagedDataAccess.Client instead of it.
There has a function to export some data from Oracle and we use "UTL_FILE.FOPEN('BIAO_DIR', v_file_name, 'W');" command, however, it's not worked, after some test I found this command worked well when I use oracle's self directory.
If I replace BIAO_DIR with ORACLE_HOME, this command will run correctly. My user is CODEDATA, I wonder how can fix this, thanks.
Query the directories
Query the user
GRANT READ ON DIRECTORY biao_dir TO userName;
Related
I'm attempting to install Oracle Client 12c and am getting this error:
Ins:32104 - Specified Oracle Home user is not the owner of the specified Oracle Base
I'm thinking that this machine i'm using is missing a registry key for oracle, it looks to me like it does not have an oracle home registry entry which could be causing the issue.
Is there anyway to re-add that key? Or maybe thats not the right approach?
If you want to install a O12c Client in addition of previous Oracle products (O11g,...), in the same directory, you can use this trick:
Let's consider that your actual Oracle Base directory is C:\Oracle and you cannot set the same Base directory for O12c installation (blocked by INS-32104 error code).
You can set C:\Oracle\Product\12.2.0 as O12c Base dir.
Then just set C:\Oracle\Product\12.2.0\client_1 as O12c Home dir.
OUI accepts this, the setup goes on. So you keep a nearly standard setup, without removing neither changing any of your previous Oracle products.
I managed to finalize the installation by removing the environment variable ORACLE_HOME, because in my system I have another installed client (11.2).
I fixed this problem by removing previous oracle clients and manually removing files in the destination base folder (C:\oracle).
Newly installed Oracle Database 12c. While creating first Workspace in Application Express (APEX) 5.1 I've got an error: "Error provisioning XXXXXXXXXXXX. ORA-20001: Request 1824748984765804 could not be processed. PROVISION_COMPANY" What could "PROVISION_COMPANY" mean?
"PROVISION_COMPANY" looks like a workspace name.
Which database version do you use? If it is 12c, have a look at "cannot create workspace" OTN forums discussion. Apparently, it is about the fact that you can't create a workspace in CDB.
#BB23 said:
I switched over to my PDB and all is good now. Interesting how EPG was happy to listen on CDB. Beware if you're new to 12c like I am.
$ sqlplus / as sysdba
SQL[CDB]> exec dbms_xdb.sethttpport(0);
SQL[CDB]> alter session set container=PDBx;
SQL[PDBx]> exec dbms_xdb.sethttpport(<port>);
SQL[PDBx]> alter system register;
SQL[PDBx]> #apxchpwd (again)
And away we go.
I am trying to Export a pluggable 12c Oracle database on Windows Server 2012R2. I usually use expdp instead of exp. The first trial gave me an EXP-00058 Password Verify Function for ORA_STIG_PROFILE profile does not exist, so I went to the file specified here and created the 11G verify function. The first error didn't show up but it gave another error: EXP-00062 invalid source statements for an object type and for the life of me I can't tell what object this is. The question is: should I drop the whole thing since original export doesn't support 12c or is there a workaround for this issue?
Hi I have problem with idle instance
When I trying:
sqlplus / as sysdba
I get result: Connected to an idle instance.
And when I try startup I get:
ORA-01078: failure in processing system parameters
ORA-01565 error in identifying file 'C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora
ORA-27041: unable to open file
ORA-04002: unable to open file
O/S-Error: (OS 2) File not found;
My system is Windows 8. Do you any idea how to solve it?
SOLUTION:
I have to startup using command:
startup pfile='<path to file>/init.ora'
and change all paths in init.ora where was
<ORACLE_BASE>
Thx for help
I've got that pain too.
To install Oracle XE you should login as local admin - NOT domain account.
This https://community.oracle.com/thread/2361291 made me happy :)
I just had the same problem.
You just have to start the setup to install the database as administrator.
After this and a reboot everything works fine.
I highly recommend reading the Oracle® Database 2 Day DBA manual, or hire a dba.
You are missing the init{ORACLE_SID}.ora, the parameter file which contains things like database name, controlfile locations. the init{ORACLE_SID}.ora is a text file that is edited with a regular text editor. This file can be converted to a spfile{ORACLE_SID}.ora that can be edited using a database instance. This is also a dynamic parameter file meaning that when you change parameters in an instance, the parameters can also be recorded in the spfile for later reuse.
For now add the db_name and control_files. Make sure that the contol_files parameter points to an existing controlfile[s]. If there are no existing control_file[s], just trash the initXE.ora, spfileXE.ora and start dbca, the Database Configuration Assistant and using that create a new database.
i have a server (HP-UX) installed with Oracle 10g and several databases on it.
I've been asked to make dumps from these tables for a Oracle 8i database. In order to do this, i need to use the 8i version of the EXP (export) tool of Oracle.
It is still installed on my server but when i want to use it, i get the following error :
EXP-00056: ORACLE error 12705 encountered
ORA-12705: Cannot access NLS data files or invalid environment specified
I presume some files are missing or maybe one of the folder is not in the PATH but i can't find and i really don't want to break the 10g installation.
Someone knows how to do ?
Thanks
Install a 10G client on another system, without modifying the 8I database server,
and connect from the client to the 8I database. Use the export utilities on
the client to generate the export file.