Creating a Tablespace Remotely
version: Oracle 9.2
i need to create a tablespace whose datafile resides on the database server. however, i can only access the database remotely via sql*plus (no OEM login). is there a way to create the tablespace like this even though the path to the datafile applies only to the server?
CREATE TABLESPACE ESB_GRANITE_CTS_DATA
'/path_on_server' SIZE 200M
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
SEGMENT SPACE MANAGEMENT AUTO;
I don't see any problem.
how is it done? i'm trying to run this script from my desktop. how do you let oracle know that the path to the .dbf file is on the server?
You've already logged into the database server to execute the command, right? Are you getting an error or something?
Originally Posted by slimdave
i'm connected to the DB server via SQLPlus from my desktop. i've got a tnsnames entry for the DB and the system login to it. that's it. i have no operating system account for the server at this point or an OEM login to its management server instance. this is the error:
ERROR at line 1:
ORA-01119: error in creating database file '/path_on _server/file.dbf'
ORA-27040: skgfrcre: create error, unable to create file
SVR4 Error: 2: No such file or directory
Just to be clear, SQL commands you enter from any client application, whether it is SQL*Plus, OEM, TOAD or anything else, are executed on your behalf by the database server. When you enter a CREATE TABLESPACE command and specify a path, a process owned by oracle (not you) will look on the server and attempt to create the file.
Originally Posted by dre1988
is that spave in the name deliberate ora typo?
it's deliberate to protect the innocent.
so does that path exist? does the oracle user have permission to create a file there?
the path exists but the file does not. the oracle user is system. i am not sure if system is set up on the server with permission to create files in the path.
Click Here to Expand Forum to Full Width