2016-08-03 21:45:13 +00:00
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
2010-09-09 22:18:43 +00:00
### Test reading sql from url command line
2016-08-03 21:45:13 +00:00
mysql: [Warning] Using a password on the command line interface can be insecure.
2010-09-09 22:18:43 +00:00
Test reading SQL from command line
Yes it works
### Test reading sql from url command line %-quoting
2016-08-03 21:45:13 +00:00
mysql: [Warning] Using a password on the command line interface can be insecure.
2010-09-09 22:18:43 +00:00
Test %-quoting SQL from command line
Yes it works
### Test .sql/aliases with url on commandline
2016-08-03 21:45:13 +00:00
mysql: [Warning] Using a password on the command line interface can be insecure.
2010-09-09 22:18:43 +00:00
Test if .sql/aliases with %-quoting works
Yes it works
### Test cyclic alias .sql/aliases
:cyclic3 is a cyclic alias
2010-09-10 00:26:01 +00:00
### Test alias with statement .sql/aliases
Test statement in alias
It works
2010-09-14 16:37:26 +00:00
Test statement in alias
It works
2016-08-03 21:45:13 +00:00
mysql: [Warning] Using a password on the command line interface can be insecure.
2010-09-14 16:37:26 +00:00
Test statement in alias
It works
### Test alias followed by SQL as arg
Test statement in alias
It works
2010-09-14 21:25:53 +00:00
'Arg on cmdline'
2010-09-14 16:37:26 +00:00
Arg on cmdline
### Test alias with query followed by SQL as arg
Test statement in alias
It works
Query added to alias
2010-09-14 21:25:53 +00:00
'Arg on cmdline'
2010-09-14 16:37:26 +00:00
Arg on cmdline
### Test alias with statement .sql/aliases
Test statement in alias
It works
Query added to alias
2010-09-14 21:25:53 +00:00
'Query from stdin'
2010-09-14 16:37:26 +00:00
Query from stdin
2016-08-03 21:45:13 +00:00
mysql: [Warning] Using a password on the command line interface can be insecure.
2010-09-14 16:37:26 +00:00
Test statement in alias
It works
Query added to alias
Query added to alias
Query from stdin
Query from stdin
2010-09-09 22:18:43 +00:00
### Test empty dburl
Error:
is not a valid DBURL
sql [-hnr] [--table-size] [--db-size] [-p pass-through] [-s string] dburl [command]
### Test dburl :
Error:
2016-08-13 17:11:15 +00:00
: is not defined in /home/tange/.sql/aliases /home/tange/.dburl.aliases /etc/sql/aliases /usr/local/bin/dburl.aliases /usr/local/bin/dburl.aliases.dist
2010-09-09 22:18:43 +00:00
sql [-hnr] [--table-size] [--db-size] [-p pass-through] [-s string] dburl [command]
2010-09-14 21:25:53 +00:00
### Test oracle with multiple arguments on the command line
2012-10-22 06:32:39 +00:00
'ARG
----
2010-09-14 21:25:53 +00:00
arg2
2012-10-22 06:32:39 +00:00
'ARG
----
2010-09-14 21:25:53 +00:00
arg3
2010-09-22 21:54:42 +00:00
### Test oracle with \n arguments on the command line
1
----------
1
2
----------
2
3
----------
3
2016-08-03 21:45:13 +00:00
### Test --show-tables
2016-08-21 13:37:59 +00:00
2016-08-03 21:45:13 +00:00
--------------------------------------------------------------------------------------------------------------------------------
2016-08-21 13:37:59 +00:00
7 rows selected.
2016-08-13 17:11:15 +00:00
COUNTRIES
DEPARTMENTS
EMPLOYEES
2016-08-21 13:37:59 +00:00
JOBS
2016-08-13 17:11:15 +00:00
JOB_HISTORY
2016-08-21 13:37:59 +00:00
LOCATIONS
OBJECT_NAME
REGIONS
2016-08-03 21:45:13 +00:00
### Test --show-databases
TABLESPACE_NAME BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS MAX_SIZE PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING FOR EXTENT_MAN ALLOCATIO SEGMEN DEF_TAB_ RETENTION BIG PREDICA ENC COMPRESS_FOR
------------------------------ ---------- -------------- ----------- ----------- ----------- ---------- ------------ ---------- --------- --------- --------- --- ---------- --------- ------ -------- ----------- --- ------- --- ------------
SYSTEM 8192 65536 1 2147483645 2147483645 65536 ONLINE PERMANENT LOGGING NO LOCAL SYSTEM MANUAL DISABLED NOT APPLY NO HOST NO
SYSAUX 8192 65536 1 2147483645 2147483645 65536 ONLINE PERMANENT LOGGING NO LOCAL SYSTEM AUTO DISABLED NOT APPLY NO HOST NO
UNDOTBS1 8192 65536 1 2147483645 2147483645 65536 ONLINE UNDO LOGGING NO LOCAL SYSTEM MANUAL DISABLED NOGUARANTEE NO HOST NO
TEMP 8192 1048576 1048576 1 2147483645 0 1048576 ONLINE TEMPORARY NOLOGGING NO LOCAL UNIFORM MANUAL DISABLED NOT APPLY NO HOST NO
USERS 8192 65536 1 2147483645 2147483645 65536 ONLINE PERMANENT LOGGING NO LOCAL SYSTEM AUTO DISABLED NOT APPLY NO HOST NO
### Test --listproc
SELECT CPU_TIME/100000, SYS.V_$SQL.SQL_TEXT, USERNAME FROM SYS.V_$SQL, SYS.V_$SESSION WHERE SYS.V_$SQL.SQL_ID = SYS.V_$SESSION.SQL_ID(+) AND username IS NOT NULL ORDER BY CPU_TIME DESC
*
ERROR at line 1:
ORA-00942: table or view does not exist