- If you are always prompted the DB is
still in use ...
alter system enable restricted session;
select sid,serial# from v$session where username = 'XXX';
alter system kill session '24,419' immediate;
alter system disable restricted session;
- How to change the current value of a
sequence?
Q: if the curr_val=1, how could I set it to 10000?
A: set "mysequence.INCREMENT_BY" to 9999, then try "select
mysequence.nextval from dual", and then set
"mysequence.INCREMENT_BY" back to 1 again.
- Export
Schema (backup)
o First, create directory expdir (If you don't
specify the parameter DIRECTORY=xxx then the dump file will dumped to
/home/oracle/app/oracle/admin/$ORACLE_SID/dpdump by default)
SQL> CONNECT system/welcome1
SQL> CREATE OR REPLACE DIRECTORY expdir AS
'/home/exp_data';
SQL> GRANT READ,WRITE ON DIRECTORY expdir
TO PUBLIC;
o Then use expdp
$ORACLE_HOME/bin/expdp system/welcome1@orcl
DUMPFILE=data_bak.dmp DIRECTORY=expdir VERSION=10.2 SCHEMAS=SCOTT
o Then you can copy the /home/exp_data/data_bak.dmp
to some other directory or some other machine to backup it.
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
- Import
Schema (restore)
o First, create directory expdir (if you already
created it, plz ignore this step)
o Then delete the SCOTT schema (beware of this step
!!!)
SQL> CONNECT system/welcome1
SQL> DROP USER SCOTT CASCADE;
o Then use impdp
$ORACLE_HOME/bin/impdp system/welcome1
DIRECTORY=expdir DUMPFILE=data_bak.dmp PARTITION_OPTIONS=MERGE remap_schema=SCOTT:NEWSCHEMA
分享到:
相关推荐
python-oracledb的源码和使用示例代码, python-oracledb 1.0,适用于Python versions 3.6 through 3.10. Oracle Database; This directory contains samples for python-oracledb. 1. The schemas and SQL ...
oracledb_exporter.0.2.2.linux-amd64.tar.gz Oracledb_exporter导出器是模仿 MySQL 导出器
oracledb_exporter 是prometheus 的一个对Oracle监控的Exporter , Prometheus+Grafana 对Oracle实现监控
Oracle DB优化总结
Node.js环境下利用node-oracledb操作oracle数据库,实现增删改查等操作。文件包括node项目、npm包依赖、node-oracledb示例。具体内容可参照博客https://blog.csdn.net/wml00000/article/details/106374969
详解Oracle数据库的db_cache_size和granule_size 摘取了官方文档的描述,用中文进行了分析
本文档详细描述了oracle数据库体系结构。
ORACLE DB数据库常见问题解决及诊断技巧集锦-ORACLE DBA故障修复必备手册.
ORACLE DB升级性能保障利器SPA最佳实践,有对数据库技术感兴趣的朋友可以下载交流
参数性能设置优化【ORACLE DB 】
ORACLE数据库培训手册轻松掌握oracle
Oracle数据库导出器 目录 描述 Oracle的导出器以MySQL导出器为模型。 我不是DBA或经验丰富的Go开发人员,因此PR绝对受欢迎。 当前公开以下指标。 oracledb_exporter_last_scrape_duration_seconds ... oracledb_activ
ORACLEDB数据库常见问题解决及诊断技巧集锦-ORACLEDBA故障修复必备手册汇编.pdf
tomcat 与 oracle db 10g xe 连接 tomcat 与 oracle db 10g xe 连接 tomcat 与 oracle db 10g xe 连接
oracle连接db2数据的步骤,比较详细,有图片说明
[Oracle官方PPT讲义] Oracle DB 11g SQL Fundamentals I
对oracledb模块的方法进行了简单的封,使其使用起来更加方便,并且附有简单的使用示例,但你可能需要先阅读README文档来帮助你更好的使用该示例
oracle html db最佳实践.ppt
OracleDB2Doc V2.0(Oracle数据库表结构导出器)是一套用来完成将Oracle数据库中的表结构导出成Word文档,并输出标准的打印报表格式的软件。 软件采用Word中VBA开发完成,软件使用Word中的菜单操作,与Word完全集成...
oracle,in memory dboracle,in memory db,oracle,in memory db,oracle,in memory db,oracle,in memory db,oracle,in memory db,