Create Tablespace in Remote Machine in Oracle - oracle

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

Related

Getting Oracle errors while importing with impdp

I'm trying to do an import using impdp utility. but I'm Seeting
impdp system/system remap_schema=ieulive:ieusystem directory=pump_dir dumpfile=IEULIVE.DMP logfile=imp.log
ORA-39002: invalid operation
ORA-39070: Unable to open the log file
ORA-29283: invalid file operation
ORA-29283: invalid file operation
thats's what I get when I use nologfile=y option
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31640: unable to open dump file "F:\data_pump\IEULIVE.DMP"
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: <os 5> access is denied
I read that its a permission issue. I have imported before onto this DB, now I'm not able to do so.
I tried everything on the internet but didn't get the solution.
Thank you for your help
Updated
when I installed oracle, I used the windows virtual account(which I don't know what it is exactly)
Either the permissions for the folder or for the specific file are not set correctly. Both must be accessible (read/write for the directory, at least read for the file) by the account which is running the Oracle processes, which is most likely the Windows SYSTEM account. Is F: a local disk drive or a network-mounted drive? On Windows network-mounted drives generally cannot be accessed using directory objects...
directory=pump_dir
Your default data pump directory location and the actual directory where you have placed your export dump files could be different.
ORA-31640: unable to open dump file "F:\data_pump\IEULIVE.DMP"
Verify the data pump directory matches with "F:\data_pump\IEULIVE.DMP":
SELECT DIRECTORY_PATH FROM dba_directories WHERE DIRECTORY_NAME = 'PUMP_DIR';
If it matches, then you need to set the appropriate permissions to the directory and files.

Unable to create audit trail file

We are running Oracle 11g R2. We are creating a new database. On the first attempt to start in nomount mode, we had forgotten to create the Audit Trail Dest. So, we created that directroy.
Now, the directory exists, we can write to it, we've tried 755 + 777, but we cannot even get into SQLPlus.
ERROR:
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 9925
ORA-01075: you are currently logged on
Is there some hidden file or something that is left over from the first attempt? We're into 3 hours and still no luck........
Figured it out, after a long while......semaphores. Needed to shut down all other instances and see what was left, and remove them.....

I lost the redologs files from my test database due to a disk error

I lost the redologs files from my test database due to a disk error, when trying to open the database it presents the error below:
ORA-01589: you must use RESETLOGS or NORESETLOGS option to open bd
When executing the command
alter database open resetlogs;
another error occurs:
ERROR on line 1:
ORA-01194: File 1 Needs More Recovery to Be Consistent
ORA-01110: data file 1: '/u02/DATA/GDQUA/datafile/system01.dbf'
Running:
recover database;
Give the error:
ORA-00283: Recovery session canceled due to errors
ORA-01610: Recovery must be performed using the BACKUP CONTROLFILE option
Can you guys help me with this?
Befor you open database with resetlogs,you need set "_ALLOW_RESETLOGS_CORRUPTION" parameter to ‘true’.
ALTER SYSTEM SET "_ALLOW_RESETLOGS_CORRUPTION"=TRUE SCOPE=SPFILE;

Errors on importing Oracle backup

I have created a directory:
SQL> create or replace directory dir as '/home/oracle12c/Desktop/latest_exp.dmp';
I am trying to run an import, as sysdba:
impdp \'/as sysdba\' full=Y directory=dir dumpfile=importDump.dmp logfile=import.log;
I am getting these errors:
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics, and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
As far as I can see from the result on my search, it as to do with permissions. The Oracle user should own the files.
The permission to the file I am trying to import looks like this:
-rw-r--r-- 1 oracle12c root 2201247744 Feb 21 16:51 latest_exp.dmp
What is my problem here, and how do I overcome it? Is there a problem when the owner of the file is oracle12? Some solutions on the internet say that the files must be owned by the user trying to access the files, who in my case is sysdba. But I cannot change the owner to my file to be sysdba, as that user does not exist on my Ubuntu.
Also, we specify the dumfile and logfile, but we do not specify the location. Where will it create the locations for these? I assumed it would look for them here: /u01/app/oracle/oradata/orcl$ where orcl is my SID
I have not been able to solve my problem with the help of Google and Oracle Doc.
I am running on Ubuntu.
The Oracle directory object should point to an operating system directory, not a file; instead of:
create or replace directory dir as '/home/oracle12c/Desktop/latest_exp.dmp'
it should just be:
create or replace directory dir as '/home/oracle12c/Desktop'
The dump file should sit in that directory, and by default the log and bad files will be created in there too.
At the moment you're asking it to create log file under the directory /home/oracle12c/Desktop/latest_exp.dmp, i.e. /home/oracle12c/Desktop/latest_exp.dmp/import.log - which clearly isn't a valid full path; and also to look for the file importDump.dmp under that not-a-directory.
Your command line looks like it has the wrong name anyway:
impdp ... directory=dir dumpfile=latest_exp.dmp logfile=import.log

Oracle Database Backup Error

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;

Resources