sqlplus user/pwd@dbname
sqlplus /nolog
show user;
alter
user
user
identified
bypassword;
select name from v$database;
select * from
global_name;
select * from v$version;
show parameters parameter_name;
select name, value
from v$parameter where name like
'%xyz%'
sql > /
@@d:\sql\data.sql
or
start d:\sql\data.sql
sql> desc table_name
sql> spool file_name
在螢幕上的所有內容都包含在該檔案中,包括你輸入的sql語句。
sql> spool off
sql> show all;
arraysize 15
autocommit off
autoprint off
autorecovery off
autotrace off
blockterminator "." (hex 2e)
btitle off 為下一條 select 語句的前幾個字元
cmdsep off
colsep " "
compatibility version native
concat "." (hex 2e)
copycommit 0
copytypecheck 為 on
define "&" (hex 26)
describe depth 1 linenum off indent on
echo off
editfile "afiedt.buf"
embedded off
escape off
escchar off
exitcommit on
用於 6 或更多行的 feedback on
flagger off
flush on
heading on
headsep "|" (hex 7c)
instance "local"
linesize 80
lno 17
loboffset 1
logsource ""
long 80
longchunksize 80
markup html off head "sql*plus report" body "" table "bord
er='1' width='90%' align='center' summary='script output'" spool off entmap on p
reformat off
newpage 1
null ""
numformat ""
numwidth 10
pagesize 14
pause 為 off
pno 0
recsep wrap
recsepchar " " (hex 20)
release 1102000100
repfooter off 為 null
repheader off 為 null
securedcol is off
serveroutput off
shiftinout invisible
showmode off
spool off
sqlblanklines off
sqlcase mixed
sqlcode 1756
sqlcontinue "> "
sqlnumber on
sqlpluscompatibility 11.2.0
sqlprefix "#" (hex 23)
sqlprompt "sql> "
sqlterminator ";" (hex 3b)
suffix "sql"
tab on
termout on
timing off
trimout on
trimspool off
ttitle off 為下一條 select 語句的前幾個字元
underline "-" (hex 2d)
verify on
wrap : 將換至下一行
errorlogging is off
Oracle sqlplus中常用的set命令
set line 1000 設定行的長度 set pagesize 0 輸出不換頁 set feedback off 預設的當一條sql發出的時候,oracle會給乙個反饋,比如說建立表的時候,如果成功命令行會返回類似 table created的反饋,off後不顯示反饋 set heading o...
oracle sqlplus常用命令
1 connect 或conn,還有 disc onnect 斷開連線 2 修改密碼命令 passw ord 使用者名稱 然後再輸入新密碼,舊密碼 3 show user 4 clear screen 5 set linesize 120 set pagesize 20 引數20表示每一頁大小的正整...
Oracle sqlplus 常用命令總結
sql plus的常用命令 sql plus的命令分為兩種 sql命令和sql plus命令。sql命令主要進行對資料庫的操作,sql plus命令主要用來設定查詢結果的 顯示格式 二者的區別 sql plus 不存在緩衝區中,不以分號結束 sql 存在緩衝區中,以分號結束。1 連線和斷開資料庫連線...