sqlldr参数:resumable、resumable_name、resumable_timeout
resumable打开挂启、恢复功能,true或false,默认为false。当sqlldr导入数据时,如果由于空间而导致表段无法扩展,如果resumable=true,则会将此会话挂起,等待表段扩展;如果resumable=false,则报如下错误,并退出...
SQL*Loader-3120
sqlldr中启用挂起、恢复功能,即设置resumable=y,可能出现如下错误:SQL*Loader-3120: Resumable parameters ignored -- current session not resumableORA-01031: insufficient privileges解决办法:grant resumab...
Providing for Secure Redo Data Transmission
Providing for Secure Redo Data TransmissionDG提供安全重做数据传输Data Guard provides a secure environment and prevents the possible tampering of redo data as it is being transferred to the sta...
ORA-12705: Cannot access NLS data files or invalid environment specified
ORA-12705: Cannot access NLS data files or invalid environment specified12705, 00000, "Cannot access NLS data files or invalid environment specified"// *Cause: Either an attempt was made to issue an A...
外部表卸载数据的限制
当带有as子句的可卸载数据的外部表建成之后,就不再可以从该外部表中的数据进行修改,即,不可增、删、改等操作。如下:--drop table all_objects_unload;create table all_objects_unloadorganization external( &n...
utl_file简单使用
--读文件set serveroutput on;declare l_dir varchar2(100); l_file_name varchar2(100); l_mod varchar2(10); ...
oracle外部表示例
--外部表示例--卸载数据--drop table all_objects_unload;create table all_objects_unloadorganization external( type oracle_datapump default directory marcus_dump_dir location('all_obje...
network_link使用
通过使用network_link,可以对另一oracle数据库中的数据进行操作,具体可分两种,一是impdp,另一是expdp。impdp使用network_link可以将另一oracle数据库中的数据导出并导入到本oracle数据库中,其中不会生成dmp文件...
linux常用别名(个人)
alias sqlplus='rlwrap sqlplus'alias lsnrctl='rlwrap lsnrctl'alias rman='rlwrap rman'alias dbh='cd $ORACLE_HOME'alias dbs='cd $ORACLE_HOME/dbs'alias net='cd $ORACLE_HOME/network'alias adm='cd $ORAC...
sqlldr文件中常用参数使用(持续更新中)
expression:将某列的值给一个sql表达式有两种方式,一种是直接使用表达式,即,col1 "to_char(sysdate, 'YYYY-MM-DD')";另一种则是通过使用expression,即,col1 expression "to_char(sysdate, 'YYYY-MM-DD')"。这...
自定义查看oracle实例状态命令
将如下内容写至文件ss,并将文件放至/home/oracle/bin目录下,打开终端,以oracle用户输入ss则可查看当前oracle实例的状态。#! /bin/bash#Author: Marcus Mao#Date: 2011-10-28#Desc: show the status of cu...
clob载入
--参考Oracle 9i&10g编程艺术 及 PL/SQL Packages and Types Reference.pdf--表结构--drop table t_clob_test;create table t_clob_test( name varchar2(100), content clob, i...
shell中特殊符号
~ 用户的home目录$* 接收所有参数,合并成一个字符串$@ 接收所有参数,不合并$# 接收参数的个数$? 上一个命令执行的结果状态码,0为成功,其他为失败\ 连接两行,...
shell控制流结构
1.ifif [ -f dasong.txt ]; then echo "dasong.txt is a file"else echo "dasong.txt is not a file"fi注意:[之后、]之前要留一个空格-d 是否是目录-f 是否是文件-e 是否存在-...
shell脚本中常用事例
1.修改密码echo "dasong" | passwd --stdin dasong2.连接sqlplussqlplus -L -S / as sysdba <<EOF select sysdate from dual; exit;EOF注:第二个EOF顶格写使用spool命...
shell中双引号与单引号区别
双引号与单引号区别1.单引号会把之中的所有内容当成普通字符,包括特殊字符:FILE_NAME="marcus.txt"echo 'the file name is: ${FILE_NAME}'输出:the file name is: ${FILE_NAME}2.双引号则会将变量转为所代表的值...
vi简单使用
对当前用户vi的默认值的设置可以写在~/.vimrc,如,将set nu写入此文件,则每次打开vi都会显示行号。如果想要对所有用户生效,则需要修改/etc/vimrc文件。vi分三种模式:一般模式命令模式编辑模式1.编辑模式与命...
sqlldr一份数据入两张表
以下是一个将一份数据文件入到两张表的例子,注意第二张表字段的写法。控制文件sqlldr.ctlload datainfile 'test.csv'preserve blanksinto table t_test_atruncatewhen flag='1'fields terminated by ',' op...
sqlldr简单使用
文件名:sqlldr.ctl内容:load datainfile 'test.csv'preserve blanksinto table t_testtruncatefields terminated by ',' optionally enclosed by '"'trailing nullcols( flag filler, col1 consta...
LRU算法与全表扫描
The LRU Algorithm and Full Table ScansLRU算法与全表扫描When the user process is performing a full table scan, it reads the blocks of the table into buffers and puts them on the LRU end (instea...