Author: techfox9

Oracle connect to schema sqlplus commands

Thursday, January 23rd, 2014 @ 8:31 pm


$ sqlplus "/ as sysdba"

SQL*Plus: Release 11.2.0.3.0 Production on Fri Jan 24 00:05:54 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> grant create session to schema;

Grant succeeded.

SQL> connect schema/password;
Connected.
SQL> ALTER TABLE sometable CONSTRAINT sometable_user_c1;

Table altered.

SQL> ALTER TABLE sometable add CONSTRAINT sometable_user_c1 CHECK (credential_store IN ('east', 'west', 'north', 'south' ));

Table altered.

SQL> commit;

Commit complete.

SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real ....

$

Oracle, Uncategorized


 


Comments are closed.