Time of Update: 2015-10-26
標籤: 1 import cx_Oracle 2 import MySQLdb 3 4 def conn_oracle(): 5 cnn = cx_Oracle.connect(‘使用者名稱‘,‘密碼‘,‘ip:連接埠號碼/資料庫‘) //使用者名稱,密碼,ip連接埠號碼資料庫 6 cur = cnn.cursor() 7 return cnn,cur 8 9 10 def close_oracle(cnn,cur):11 cur.close()12
Time of Update: 2015-10-26
標籤:create table T_HQ_E( xingm VARCHAR2(10), chengj NUMBER not null, jiatzz VARCHAR2(15))tablespace SYSTEM pctfree 10 pctused 40 initrans 1 maxtrans 255 storage ( initial 16K minextents 1 maxextents unlimited );-- Add comments to
Time of Update: 2015-10-26
標籤:本部分主要參考”風哥“的Oracle入門視頻。 一、體繫結構概述1、物理結構(檔案結構)Oracle有四種檔案:控制檔案、資料檔案、記錄檔、參數檔案其中記錄檔分為兩類:聯機記錄檔、歸檔記錄檔。 ①資料檔案DataFile是實體儲存體ORACLE資料庫資料的檔案a.每個資料庫檔案只與一個資料庫相聯絡。b.一個資料表空間包含一個或多個資料檔案。 ②記錄檔:記錄所有對資料資料的修改,以備回複資料時使用。a.每個資料庫至少包含兩個記錄檔組。b.
Time of Update: 2015-10-26
標籤:http://blog.csdn.net/pan_tian/article/details/8169339有一個小技巧,Oracle EBS登陸後可以繞過職責和功能的選擇過程,就可以直接開啟某個特定的Form,這樣整個的登陸過程會更快. 方法:Oracle Application Home Page > Preferences > Start Page,輸入起始的‘Responsibility‘和‘Page‘,Apply之後,重新登陸,就可以繞過職責和功能的選擇過程,
Time of Update: 2015-10-26
標籤:oracle查看資料檔案 控制檔案 及記錄檔命令 一. 查看資料檔案SQL> select name from
Time of Update: 2015-10-26
標籤:# su - oracle oracle> sqlplus "/as sysdba" SQL> exec dbms_scheduler.disable(‘MONDAY_WINDOW‘); SQL> exec dbms_scheduler.disable(‘TUESDAY_WINDOW‘); SQL> exec dbms_scheduler.disable(‘WEDNESDAY_WINDOW‘);
Time of Update: 2015-10-26
標籤:1,rownum 是一個虛列,使用時必須包括1才能使用,rownum = 1,rownum < 10; rownum = 2是不可以的;2,if case loop 要加end結束,end if;3,外鍵,foreign key(s) references table_name(pk)4,建立一個表,複製內容 create table t_1 as select * from t_2;5,存在一個表,複製內容 insert into t_1 select * from
Time of Update: 2015-10-26
標籤: password管理一直操作的一部分的安全管理和維護。CacheGroup系統管理使用者password雖然並不複雜變化。然而,這是用於生產,改不好比較easy導致失敗。簡介點擊這裡CacheGroup系統管理使用者password的改動。便於入門的兄弟學習。1、在主備節點改動sys.odbc.ini設定檔$ cd $TT_HOME/info$ vi
Time of Update: 2015-10-26
標籤:這裡以11g官方文檔為例: 今天來說說怎麼快速的從官方文檔中得到自己需要的知識。 線上官方文檔地址:http://tahiti.oracle.com/幾乎囊括了 oracle各種產品的文檔(oracle db12c的文檔還沒更新上來) 離線:www.oracle.com這個不多說了 以11g官方網文檔為例: Getting
Time of Update: 2015-10-26
標籤:轉自 http://www.51testing.com/html/99/478599-842622.html今天安裝了oracle後,啟動監聽,報錯如下: 啟動tnslsnr: 請稍候... TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production寫入E:\oracle\product\10.2.0\db_2\network\log\listener.log的日誌資訊監聽: (
Time of Update: 2015-10-26
標籤: declare inst_name varchar2(100); cursor mycur is select * from tran_forward t where t.instrument_type_id=‘3010‘; query_row tran_forward%rowtype;begin open mycur; --開啟遊標 loop fetch mycur into query_row;
Time of Update: 2015-10-26
標籤:oracle linux 虛擬機器 環境: (1) Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41
Time of Update: 2015-10-26
標籤:Oracle字串函數最近換了新公司,又用回Oracle資料庫了,很多東西都忘記了,只是有個印象,這兩晚抽了點時間,把oracle對字串的一些處理函數做了一下整理,供日後查看。。平常我們用Oracle主要有兩種字串類型1.char始終為固定的長度,如果設定了長度小於char列的值,則Oracle會自動用空格填充的。當比較char時,Oracle用空格將其填充為等長,再進行比較。2.VarChar2資料類型為可變長度,雖然與VarChar資料類型是同義的,但在今後的Oracle版本中也許會有變
Time of Update: 2015-10-27
標籤:函數1,字串截取 select substr(‘abcdef‘,1,3) from dual2,尋找子串位置 select instr(‘abcfdgfdhd‘,‘fd‘) from dual3,字串串連 select ‘HELLO‘||‘hello world‘ from dual;4, 1)去掉字串中的空格 select ltrim(‘ abc‘) s1,
Time of Update: 2015-10-26
標籤:-- Create tablecreate table T_HQ_B( xzingm VARCHAR2(10), zhuz VARCHAR2(20), zhis NUMBER, bianh VARCHAR2(10) not null) ( initial 64K minextents 1 maxextents unlimited );-- Add comments to the columns comment on column
Time of Update: 2015-10-27
標籤:1,字串截取 select substr(‘abcdef‘,1,3) from dual2,尋找子串位置 select instr(‘abcfdgfdhd‘,‘fd‘) from dual3,字串串連 select ‘HELLO‘||‘hello world‘ from dual;4, 1)去掉字串中的空格 select ltrim(‘ abc‘) s1,
Time of Update: 2015-10-27
標籤:一、安裝oracle資料庫 安裝之前先進行環境檢查:1.檢查系統版本#uname -a2.查看記憶體大小#/usr/contrib/bin/machinfo | grep -i Memory3.查看swap大小#/usr/sbin/swapinfo -a4.磁碟空間大小#bdf 可以新掛一個盤進行oracle的安裝,具體的步驟參照:http://blog.csdn.net/kinges/article/details/163119655.建立使用者和組#
Time of Update: 2015-10-27
標籤:一,在安裝的時候,參數有點不一樣:python setup.py build install 二,串連資料庫,有兩種方式,DSN和TNSNAMES方式:#dsn = orcl.makedsn(self.oracle_host, self.oracle_port, self.oracle_sid)#con = orcl.connect(self.oracle_username, self.oracle_password, dsn)con =
Time of Update: 2015-10-27
標籤:15,函數的建立,要求必須有傳回值,必須在語句中調用,需要多個傳回值時,使用out參數類型,在user_procedures表中查詢屬性,在user_source表中查詢原始碼,建立樣本:CREATE OR REPLACE FUNCTION my_function_01--建立函數(v_01 IN NUMBER)--參數列表RETURN NUMBER--傳回型別is--標識res NUMBER;--變數的聲明BEGIN--函數主體 res := v_01; RETURN
Time of Update: 2015-10-27
標籤:原文地址 Shut down the WebLogic domain, the managed servers, Admin Server and Node Manager. Set the following environment variables in the command prompt (cmd) to help you navigate easily, in my case for Windows O/S: set