dba:cli_commands
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| dba:cli_commands [2025/12/02 16:25] – created mlivolsi | dba:cli_commands [2025/12/02 20:17] (current) – [Dumping and Restoring] mlivolsi | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| - | ^ Command ^ Oracle ^ MySQL ^ Posgres | + | ^ Command ^ Oracle ^ MySQL ^ Postgres |
| - | | Show databases (schema) | < | + | | Show databases (schema) |< |
| + | from dba_objects | ||
| + | where owner =' '</ | ||
| | Query Buffer | list | <up arrow > | \p | | | Query Buffer | list | <up arrow > | \p | | ||
| | Quit / Exit | exit | exit | \q | | | Quit / Exit | exit | exit | \q | | ||
| + | | Display users |select * From dba_users;| | \du | | ||
| + | | Display Schemas | <same as show databases> | ||
| + | | Connect to a new DB | . | | connect database | | ||
| + | | Dropping a schema | drop user < | ||
| + | | Show all tables | select * From dba_tables where owner = < | ||
| + | |||
| + | |||
| + | ==== Privs ==== | ||
| + | ^ Command ^ Oracle ^ MySQL ^ Postgres ^ | ||
| + | | create user | create user < | ||
| + | |||
| + | |||
| + | ==== Dumping and Restoring ==== | ||
| + | ^ Command ^ Oracle ^ MySQL ^ Postgres ^ | ||
| + | |dumping | expdp | mysqldump | pg_dump | | ||
| + | |Restore | impdp | mysql > source < | ||
dba/cli_commands.1764692711.txt.gz · Last modified: by mlivolsi
