1.打开sql plus,乱码问题
设置环境变量
NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
2.连接数据库
用户名/密码@数据库名称
SQL*Plus: Release 11.2.0.1.0 Production on 星期二 4月 11 14:25:05 2017
Copyright (c) 1982, 2010, Oracle. All rights reserved.
请输入用户名: CreditCC2/M*Asd()3k@cedb
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Testing options
SQL>
常用SQL
显示当前连接用户
SQL> show user
USER 为 "CREDITCC2"
SQL> desc organiz_info
名称 是否为空? 类型
----------------------------------------- -------- ---------------------------
OGZ_ID NOT NULL NUMBER(38)
OGZ_CODE VARCHAR2(20)
OGZ_NAME NOT NULL VARCHAR2(150)
OGZ_DESC VARCHAR2(600)
OGZ_PARENT_ID NUMBER(38)
OGZ_STATUS VARCHAR2(1)
OGZ_SELECT VARCHAR2(1)