转 异构数据库中间件sequoia(c-jdbc)初体验(1.安装试运行)
老板要俺找个异构多数据库系统,运行起来。一个周的时间,成果如下:1.了解当前多库系统的研究情况2.安装了当前流行的多库中间件sequoia[@more@]老板要俺找个异构多数据库系统,运行起来。一个周的时间,成果如下:1.了解当前多库系统的研究情况2.安装了当前流行的多库中间件sequoia一.多库系统研究情况两种体系结构: 1基于数据库引擎的多库系统(各主流数据库都提供了集群版本,主要有ORACLE RAC,Mysql high availability cluster,Microsoft SQL Cluster Server, IBM DB2 UDB High Availability Cluster,PostgreR)
一个简单copy table 的stored procedure 代码
CREATE OR REPLACE PROCEDURE copy_tabAUTHID current_user as coun number;BEGINselect count(*) into coun from user_tables where table_name='NEW_TABLE';if coun > 0 then execute immediate 'drop table new_table';end if;execute immediate 'create table new_table as select * from test';END;/[@more@]tips:1. AUTHID current_user 确保本用户有使用此procedure的权限2. select count(*) into coun from user_tables where table_name='NEW_TABLE';if coun > 0 then execute immediate 'drop table new_table';end if;
unix rcp 用法
trcp[@more@]使用rcp, 1. 在目标机器上,(不管是你是要get还是put), home目录下vi .rhosts,把操作的ip和userid写进去,如:16.23.33.111 laona2. 然后在本机上rcp 目标机登陆userid@目标机ip:directory/file rename这样目标file就会被copy到本机user 的home文件夹下 rename
ITIL应用实例(一)
ITIL[@more@]当Pershing公司开始进行IT服务管理,并使用ITIL来规范自己的IT服务流程后,该公司的职员在IT系统或硬件方面出现问题时的工作流程是这样的:首先,他会呼叫服务台,向服务台寻求帮助;接着服务台会将此呼叫转给以下四个专门领域的服务支持人员:桌面帮助领域、网络支持领域、主机服务领域以及分布式系统服务领域。由于Pershing公司早在2004年1月便实施了ITIL,通过一年多的实践经验,负责回答呼叫问题的各个领域服务人员们对他们所负责的领域都积累了很多经验知识,总结了一张问题列表,该列表记录了过去发生过的类似事件和问题
用FTP进行WIN95与UNIX文件传输
用FTP进行WIN95与UNIX文件传输[@more@]用FTP进行WIN95与UNIX文件传输在Window95上选择“开始”,启动“运行”,在“打开”对话框中,键入:ftp 190.1.1.6,按“确定”。键入用户名和密码,登陆UNIX成功后进入FTP。 ftp>pwd 显示UNIX主机当前目录; ftp>cd 进入欲进行文件传输的UNIX目录; ftp>bianry或image 若传输的文件为二进制文件; ftp>get remote-file [local-file] 将UNIX主机文件传送到Window95的 local-file,缺省为传送到Window95的Desktop上; ftp>mget remote-files 传送UNIX主机的多个文件到Win
bin,/sbin,/usr/bin/,/usr/sbin的划分标准是什么
bin,/sbin,/usr/bin/,/usr/sbin的划分标准是什么[@more@]/ : this is root directory/bin : commands in this dir are all system installed user commands/sbin: commands in this dir are all system installed super user commands/usr/bin: user commands for applications/usr/sbin: super user commands for applications/usr/X11R6/bin : X application user commands/usr/X11R6/sbin: X application super user commands
oracle版本!!!痛恨
I have a problem trying to export a database and I cannot figure out what it might be. When writing this line of command:[@more@]I have a problem trying to export a database and I cannot figure out what it might be. When writing this line of command: exp user/pass@orcl file=c:scott.dmb full=y I receive the following message: EXP-00056: ORACLE error 6550 encountered ORA-06550: line 1, column 41: PLS-00302: component 'SET_NO_OUTLINES' must be declared ORA-06550: line 1, column 15: PL/SQL: Sta
Chain in Scheduler
Job Chain[@more@]ChainsA Scheduler chain consists of a set of related programs that run in a specified sequence. The successivepositions in the chain are referred to as “steps” in the chain, and each step can point to anotherchain, a program, or an event. The chain includes the “rules” that determine what is to be done ateach step of the chain.We’ll create a simple Scheduler chain by first creating a Scheduler chain object, then the chainsteps and the chain rules.Creating a ChainSince Sched
Advanced Scheduler Concepts
job class, windows, windows group[@more@]Job ClassesA job class is a way of grouping jobs into larger entities, thus enabling you to prioritize access to the job slaves among those job classes. This means that you can, for example, make sure a CEO's request will begin before a routine job. In addition to using job classes for resource allocation, you can also use them for setting job characteristics or behavior that must be the same for all the jobs in the class.When defining job classes, you sh
Export/Import
Export/Import in Oracle[@more@]1、Export/Import的用处 Oracle Export/Import工具用于在数据库之间传递数据。 Export从数据库中导出数据到dump文件中 Import从dump文件中到入数据导数据库中 下面是一般使用他们的情况 (1)、两个数据库之间传送数据 同一个版本的oracle Server之间 不同版本的oracle Server之间 同种OS之间 不同种OS之间 (2)、用于数据库的备份和恢复 (3)、从一个SCHEMA传送到另一个SCHEMA (4)、从一个TABLESPACE传送到另一个TABLESPACE 2、DUMP文件 EXPORT到出的是二
SQL常用命令
1、连接SQL*Plus system/manager[@more@]1、连接SQL*Plus system/manager2、显示当前连接用户SQL> show user3、查看系统拥有哪些用户SQL> select * from all_users;4、新建用户并授权SQL> create user a identified by a;(默认建在SYSTEM表空间下)SQL> grant connect,resource to a;5、连接到新用户SQL> conn a/a6、查询当前用户下所有对象SQL> select * from tab;7、建立第一个表SQL> create table a(a number);8、查询表结构SQL> desc a9、插入新记录SQL> insert into a values(1);10、查询记录SQL> se
oracle scheduler使用的一些总结
Oracle scheduler[@more@]Scheduler 是oracle 10g 后添加的新特性,使用scheduler可以方便的设定在任意时间调用pl/sql块或者OS脚本(bat in windows, shell in linux)。这对数据库的一些定时操作提供了极大便利。scheduler基本部分有3块:job, program, shedule下面通过一个定时exp脚本来描述这3个部分:Program 一个Program可能涉及到特等/的SQL块,一个存储过程或一个操作系统的可执行文件. begindbms_scheduler.create_program(program_name=> 'EXP_PRO1',program_type=> 'EXECUTABLE',program_action =>'c:windowssystem32cmd.
why I can not open oracle 10g em?
when I changed ip address, em became invalid, and this is solution:[@more@]when I changed ip address, em became invalid, and this is solution:1. cmd--> set oracle_sid = xxx( current server)2. cmd--> emctl start dbconsolewell, done!