SQL/PLUS commands:
1. Log in to the database
conn username/password@database instance name;
D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
tnsnames.ora: store all database connection strings And instance name
2. Set line length:
set linesize number;-set the number of characters
displayed on the current line show linesize; display the current line length
3. Set the number of lines displayed on the page:
set pagesize value;-set the number of lines
displayed on the current page show pagesize; display the number of lines displayed on the current page
4. Display table structure:
desc table name;-display table structure (Ctrl+left mouse button in Developer)
5. User unlock:
alter user username account unlock;-unlock user
6. Mandatory change of password
alter user username identified by password;-Mandatory change of password
7. Change password
passw- change the password according to the prompt
8. Show current user
show user;
9.Exit the current database:
disc;
disconn;
disconnection;
10.Exit SQPLUS:
exit;