Previously i have used oracle 10g version. but today i uninstalled oracle 10g version and installed oracle 11g version. after that i installed apex_4.1.1_en and create new workspace and install apex backups. then i tried to install database backup (i did backup as schema backup). but i couldn't install backup successfully. i couldn't create tables successfully. i got error saying tablespace does not exist as below.
tablespace 'APEX_11560722039238920' does not exist
how could i resolve this? how could i install my database backup ?
There are more ways to fix this, depending on how you made the export. If you used the old exp utility you could create a ddl script and change the tablespace name in the script, run the script and redo the imp. Use imp help=y to see the cmdline options, look for indexfile.
If you used expdp, the previous fix is valid but you could also use a remap tablespace directive to redirect the table/index creations to the tablespace of your choice. Use impdp help=y for the cmdline options needed.
Since this is you own database, the easiest way to handle this is to just create the tablespace that is missing.
create tablespace APEX_11560722039238920 datafile '/where/you/want/APEX_11560722039238920.dbf' size 512m autoextend on next 512m maxsize 2g;
alter user your_apex_owner quota unlimited on APEX_11560722039238920;
Related
I have installed the Oracle DB 18c EE. I have installed the Oracle GoldenGate.
My test replication is good.
Then: I have modified the EXTRACT to DDL replication.
But logs say me: You have to prepare the Oracle DB.
The log message:
2019-08-02 17:29:05 ERROR OGG-00529 DDL Replication is enabled but table dima.GGS_DDL_HIST is not found. Please check DDL installation in the database.
There is No Scripts like in the article for the Oracle DB 12 (marker_table, and etc.) in my deployment (18c). DML replication works.
What Do I have to do in a Oracle 18c EE installation to enable the DDL in the DB?
If You are using the SQLPlus in the $ORACLE_HOME/bin path You will be using a full path to scripts. All scripts are placed in the Golden Gate root directory.
Use a cd:
export PATH=$PATH:$ORACLE_HOME/bin
cd /home/oracle/ggs/
sqlplus / as sysdba
The Full Guide is : DDL Guide
I have Oracle 12c database and I execute expdp command to create dump file. Later I want to be able to restore database using this dump file, on the same location as where the dump was created from. I don't want to stop database, which is required to drop schema (or execute any 'shutdown immediate', which is required for doing the same with flashbacks).
If I execute impdp with remap_schema=myschema:myschema, I get many errors. When I try it with table_exists_action=replace, I also get errors (ORA numbers: 31684, 39111, 39083, 31085, 39325, 31061, 06512, 29329).
How can I restore database in the same location? Thanks!
I want to create tablespace in remote machine where my oracle server exist,
I have admin privileges to both machines.
i tried something like this
create tablespace SampleSpace datafile '\\RemoteMachine\app\Administrator\oradata\orcl\SampleSpace.dbf' size 5M autoextend on next 10240K maxsize 8388640K;
But it is showing error like
ERROR at line 1:
ORA-01119: error in creating database file
'\RemoteMachine\app\Administrator\oradata\orcl\SampleSpaxce.dbf
ORA-27040: file create error, unable to create file.
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.
Any help would be greatly appreciated.
This should work, Make sure whether you have read and write permissions to \RemoteMachine\app\Administrator\oradata\orcl folder
I'm trying to export some schemas DDL (no need for data) using expdp on Oracle 11.2.0.3.0. I need to try and find a way of either exporting these without compression enabled or importing ignoring the compression.
I understand you can remove compression on the import using the TRANSFORM param on 12 but I can't find anything similiar for 11.
export:
expdp /#schema_name DIRECTORY=DMP_FILES DUMPFILE=schema_name.dmp CONTENT=METADATA_ONLY exclude=STATISTICS log=schema_name.log;
import:
impdp /#schema_name DIRECTORY=DMP_FILES DUMPFILE=schema_name.dmp log=schema_name.log;
Looks like the only way in 11g was to use the sqlfile param as part of impdp to turn the existing dmp files into DDL files. I then ran these through SQLplus on the server.
I was following this tutorial:
http://sysadminnotebook.blogspot.com/2012/10/installing-oracle-11g-r2-express.html
and I sucessfully installed and started oracle database. Now I wanted to connect to that DB from bash, so I found that command:
sqlplus sys as sysdba
It asks for password, which in my case is oracle, and after I supply it, I get:
ORA-01031: insufficient privileges
What should I do?
EDIT:
I needed to add group dba and add myself to that group. However I've got other problem now. I wanted to create user, so I did:
CREATE USER myuser IDENTIFIED BY password
default tablespace users
temporary tablespace temp;
And I got: ORA-01034: ORACLE not available.
I tried: STARTUP But I got:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/xe/dbs/initXE.ora'
I have '/u01/app/oracle/product/11.2.0/xe/dbs/init.ora' file but not initXE.ora
Is the o/s user a member of the dba group?
If this is a new installed Oracle and you do not have initXE.ora parameter file here /u01/app/oracle/product/11.2.0/xe/dbs/, that means you need to create XE DB first. To do that run /u01/app/oracle/product/11.2.0/xe/bin/createdb.sh script first.