After doing DEFINE_EDITOR=vi . I wrote
SQL > edit sample.sql
This is being stored in Jagan/Documents by default. But i want this to be stored in Jagan/Documents/plsql. Can anybody tell how to do this..
After doing DEFINE_EDITOR=vi . I wrote
SQL > edit sample.sql
This is being stored in Jagan/Documents by default. But i want this to be stored in Jagan/Documents/plsql. Can anybody tell how to do this..
In Windows you can specify the default location of scripts via the "Starts In" property of the shortcut for SQL Plus, or via the SQLPATH registry entry.
In Unix you would use the ORACLE_PATH enviroment variable.
See the SQL Plus docs for more details.
It's pretty simple. This will open a new file in the /tmp directory:
SQL> edit /tmp/sample.sql