|
◆◆Oracle10G管理界面登录网址:
http://localhost:1158/em/console/logon
http://localhost:5500/em/console/logon
◆◆Oracle10G查看字符集:
select * from nls_database_parameters
◆◆Oracle默认用户密码:
sys/change_on_install
system/manager
scott/tiger
◆◆Oracle执行Sql语句列表:
Java代码
- select *
- from v$sql t
where t.FIRST_LOAD_TIME > to_char(sysdate - 1, 'yyyy-mm-dd hh24:mi:ss')
or t.LAST_LOAD_TIME > to_char(sysdate - 1, 'yyyy-mm-dd hh24:mi:ss');
select *
from v$sql t
where t.FIRST_LOAD_TIME > to_char(sysdate - 1, 'yyyy-mm-dd hh24:mi:ss')
or t.LAST_LOAD_TIME > to_char(sysdate - 1, 'yyyy-mm-dd hh24:mi:ss');
◆◆查看oracle数据库是否启动了刷新进程:
Java代码
- select value from sys.v_$system_parameter where name = 'job_queue_processes';
select value from sys.v_$system_parameter where name = 'job_queue_processes';
◆◆oracle的字符储存---按字节或按字符
Java代码
- +--------------------------------------------------+
+ 数据库里的varchar2和char字段长度定义是有两种方式 +
- +--------------------------------------------------+
- + 按字节 + 按字符 +
- +-------------------------+------------------------+
+ varchar2(n byte) + +
+ char(n byte) + varchar2(n char) +
+ varchar2(n) + char2(n char) +
- + char2(n) + +
- +-------------------------+------------------------+
- + substrb + substr +
- + lengthb + length +
- +-------------------------+------------------------+
+--------------------------------------------------+
+ 数据库里的varchar2和char字段长度定义是有两种方式 +
+--------------------------------------------------+
+ 按字节 + 按字符 +
+-------------------------+------------------------+
+ varchar2(n byte) + +
+ char(n byte) + varchar2(n char) +
+ varchar2(n) + char2(n char) +
+ char2(n) + +
+-------------------------+------------------------+
+ substrb + substr +
+ lengthb + length +
+-------------------------+------------------------+
◆◆oracle的translate函数的应用
◇使用描述:过滤字符内容中的所有数字
◇执行语句:select translate('a1b2c3', '\1234567890', '\') from dual;
◇输出结果:abc
◇使用描述:过滤字符内容中的除数字以外的字符
◇执行语句:select translate('a1b2c3','\' || translate('a1b2c3', '\1234567890', '\'),'\') from dual;
◇输出结果:123 |
|
|