当前位置:网站首页>[Oracle database] mammy tutorial day02 use of database management tool sqlplus
[Oracle database] mammy tutorial day02 use of database management tool sqlplus
2022-06-11 07:24:00 【Rookie advanced station】
SQLPLUS Use
installed Oracle 11G, In the start menu, the Oracle It comes with management tools , Among them is SQL Plus.
SQL Plus The login
1. open Oracle Self contained SQL Plus plug-in unit
win+r Input cmd Knock back

2. Log in as Administrator SQL Plus
sqlplus / as sysdba

Unlocking users
alter user user name account unlock;

Change user password
alter user user name identified by password ;

3. SQL Plus Direct login data
sqlplus user name / password @ip:port/ Database instance
ip: This machine ip127.0.0.1
sqlplus user name / password -- Connect to the default instance

4. Do not log in and connect to the database
sqlplus /nolog

adopt conn(ect) Command to connect to database
conn user name / password @ip:port/ Database instance
conn scott/scott -- Connect to the default database instance
conn user name
conn user name / password @orcl

SQL Plus The command
1. l command
L(IST): see sqlplus The last statement cached

2. / command
/: Execute in cache sql sentence

if l The command is to query your last command , that / Command is to execute your last command
4. n command
n: It is a natural number , Means to put the cursor in the cache sql The second part of the sentence n That's ok

5. a command
a : Add content to the current row

6. c command
c: modify sql The content of the statement c / The source string / New string

7. del command
del: Delete the contents of the current line

8. show all
show all Show sqlplus All parameter configurations in

9. col command
col Name | Alias for Display format
String format :a length col hiredate for a2
Digital format :9 Dot character col sal for 9999.99
col sal for L9999.99 --L Local currency symbol
col sal for $9999.99

10. save command
save File path : To be executed sql Statement to a file

11. spool command
spool File path
sql sentence
spool off
take spool and spool off And save the executed statements and results to a file

12. desc command
desc Table name View table structure

边栏推荐
- Calculate the day of the week for a specific month, year and day
- Shangtang technology has actively resumed work and will vigorously invest in the capacity and deployment of the digital sentry
- Education expert wangzhongze shared his experience for many years: family education is not a vassal
- [STL source code analysis] summary notes (5): a good helper for understanding iterators --list
- Set center alignment
- Leetcode-647.Palindromic Substrings
- Object. Specific implementation and difference between create() and new
- Atomicinteger atomic operation class
- Seata的几种事务模式
- 一、SQLServer2008安裝(帶密碼)、創建數據庫、C#窗體項目測試
猜你喜欢

【编译原理】05-语法制导的语义计算——基于翻译模式的语义计算

生物序列智能分析平台blog(1)

模块化笔记

2022 low voltage electrician test questions and online simulation test

Seata的几种事务模式

2022 melting welding and thermal cutting exam exercises and answers
![[deploy private warehouse based on harbor] 4 push image to harbor](/img/af/8e28b229d94f3e6eab02308b69dc74.jpg)
[deploy private warehouse based on harbor] 4 push image to harbor

Create a form whose client area is 800 pixels by 600 pixels

If you want to save an IP address, what data type is better? 99% of people will answer wrong!

教育专家王中泽老师:家庭教育重在自己成长
随机推荐
教育专家王中泽老师:家庭教育重在自己成长
生物序列智能分析平台blog(1)
Set center alignment
Directrix of ellipse
Raspberry pie builds a full-featured NAS server (07): manage your library & read as you please
【CF#654 (Div. 2)】A. Magical Sticks
Pointer to a two-dimensional array
Explain the difference between void 0 and undefined
Server parameter adjustment record
P3172 [cqoi2015] data selection (Mobius inversion + Du Jiao sieve)
Crmeb/v4.4 Standard Version open version mall source code applet official account h5+app mall source code
Listen to the left width of the browser to calculate the distance
1734. arrangement after decoding XOR
Android and IOS reverse analysis / security detection / penetration testing framework
Tetris preliminary
学 SQL 必须了解的10个高级概念
QT interface nested movement based on qscrollarea
Multi thread review summary parsing volatile keyword
Interview question 17.08 Circus tower
Calculate the day of the week for a specific month, year and day