標籤:expdp: sql的命令只執行一次,以後不用再執行mkdir /home/oracle/backupchmod 777 /home/oracle/backupSQL> create directory EXPDIR as ‘/home/oracle/backup‘;SQL> grant read,write on directory EXPDIR to DEEPRADAR;SQL>
標籤:每天回到家先玩到九點半再說。。。今天看網易雲課堂的另一個課程,又從簡單查詢開始講起了1、Distinct去重,好像沒什麼區別2、別名,也沒什麼區別3、四則運算,一樣4、串連符,之前看過了,是用||5、限定符,也差不多, AND OR < > != <> BETWEEN6、模糊查詢, LIKE ‘%%‘,一樣7、ORDER
標籤: --1. 查詢DBLINK許可權 select * from sys.user_sys_privs t where t.privilege like upper(‘%link%‘); --2. 賦予DBLINK許可權 grant CREATE PUBLIC DATABASE LINK,DROP PUBLIC DATABASE LINK to demobase; --3. 查詢建立的DBLINK串連 select * from DBA_DB_LINKS;
標籤:expdp:SQL> create directory dir_tables as ‘/home/oracle/tables‘;SQL> grant read,write on directory dir_tables to 使用者名稱;expdp system/system密碼@SID tables=使用者名稱.表名 directory=dir_tables dumpfile=tables.dmp logfile=tables.log
標籤:------------------------1.簡單的SQL查詢--------------------------select * from emp;select empno,ename,job from emp;select ‘編號是:‘|| empno || ‘ 名稱是:‘|| ename from emp;select distinct empno ,ename from emp;select empno,ename,job,sal*100 income from emp;--
標籤:1、查看使用者的proifle是哪個,一般是default:sql>SELECT username,PROFILE FROM dba_users;2、查看指定概要檔案(如default)的密碼有效期間設定:sql>SELECT * FROM dba_profiles s WHERE s.profile=‘DEFAULT‘ AND
標籤:密碼1 conn / as sysdba2 alter user system identified by Abcd1234; manual script first -->manual_script_before_install.sql 1 -- must connect as sysdba to execute the following script 2 -- this manual script is to minimize the
標籤:TO_NUMBER(x [, format], [ nls_language ]) converts x to a NUMBER.x is the string that will be converted to a number. x是將要被轉換成number的字串。format, optional, is the format that will be used to convert x to a number. format,可選項,是用來將x轉換成number的格式。