一、aix系统下启动、停止数据库
1、启动数据库
oracle@aix5:~> sqlplus /nolog
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 12:29:37 2011
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE 例程已经启动.
Total System Global Area 4932501504 bytes
Fixed Size 2027584 bytes
Variable Size 687869888 bytes
Database Buffers 4227858432 bytes
Redo Buffers 14745600 bytes
数据库装载完毕。
数据库已经打开。
2、启动监听器
oracle@aix5:~> lsnrctl start
3、停止监听器
oracle@aix5:~> lsnrctl stop
4、查看监听器状态
oracle@aix5:~> lsnrctl
LSNRCTL> status
LSNRCTL> exit
5、停止数据库:
oracle@aix5:~> sqlplus /nolog
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> shutdwon abort;--立即停止
二、去掉oracle列中的空格
1、update tab_name set col_a = replace(col_a,' ','');
2、update tab_name set col_a=trim(col_a);
三、导出dmp文件,新增用户
1.导出DMP文件:
exp testuser/testuser@zjjdvg1 file='/bkdata/testuser_bak/testuserMMDD.dmp' full=y rows=y;
2. 新建testuser_bak用户
-- Create the user
create user testuser_bak
identified by "testuser_bak"
default tablespace TBS_test
temporary tablespace TBS_TEMP
profile DEFAULT;
-- Grant/Revoke role privileges
grant connect to testuser_bak;
grant resource to testuser_bak;
-- Grant/Revoke system privileges
grant alter any index to testuser_bak;
grant alter any table to testuser_bak;
grant create any index to testuser_bak;
grant create any view to testuser_bak;
grant create any sequence to testuser_bak;
grant create any table to testuser_bak;
grant select any sequence to testuser_bak;
grant select any table to testuser_bak;
grant select any dictionary to testuser_bak;
grant execute any procedure to testuser_bak;
grant unlimited tablespace to testuser_bak;
分享到:
相关推荐
通过平常的整理,比较全面,希望给大家带来帮助
本人重新把李兴华oracle整理成word文档,花了很长时间
最近学习oracle 整理的一些学习资料,希望对大家能有用帮助。
李兴华讲解的oracle数据库,整理成word文档。
这是我自己整理的Oracle学习资料,它是我自己学习过程的一个缩影,希望它可以帮助到现在正在学习ORACLE的同学
oracle 打包 完全版,从网上下的又需要的看看吧。
Oracle学习笔记包括:Oracle概述,sql基础,PL/SQL的用法,Oracle基本操作,数据库用户管理,数据库空间管理,备份与回复机制,控制文件及日志文件的管理,数据库控制,Oracle数据库的安全管理,留言板系统,oracle ...
整理的ORACLE相关的一些常用的语法等
ORACLE 段的碎片整理 当生成一个数据库对象时(一个表或一个索引),通过用户缺省值或指定值来为它指定表空间。一个在表空间中生成的段,用于存储对象的相关数据。
以下是我这一周学习oracle整理的笔记,包括课堂的内容和自己看额外看的视频补充的一些内容,基本上囊括了所有oracle的基本知识。主要的形式是例子代码加代码解释加运行结果,我个人认为对于没有学习过oracle的同学是...
这是我学习工作期间整理出的Oracle笔记,很详细
自己学习oracle时,整理搜集的资料,包括存储过程,触发器,工作,函数等,非常全,内有大量实例,绝对值
Oracle碎片整理
Oracle技术大牛整理常见问题很详细的讲解,总共含有千多页文档,都是最新,2012版 TianleSoftware Oracle 学习手册 在 Oracle 几年的学习中,, 做了很多的实验, 也遇到了很多的问题,在这个过程中,积累了一些...
Oracle数据库整理表碎片
Oracle技术大牛整理常见问题很详细的讲解,总共含有千多页文档,都是最新,2012版 TianleSoftware Oracle 学习手册 在 Oracle 几年的学习中,, 做了很多的实验, 也遇到了很多的问题,在这个过程中,积累了一些...
oracle 基础知识整理
自己实践总结的oracle空间碎片的整理,很好的参考!
学习oracle知识笔记整理,包括pl/sql编程,过程、函数、游标开发等。