SUSE one-SP2 installation of ORACLE 11g small problems encountered:1. Run in the database directory./runinstall, after the appearance of the graphical interface, and then point to the next step, to the 3rd or 4th interface, the card is not moving,
1 Importcx_oracle2 ImportMySQLdb3 4 defconn_oracle ():5CNN = Cx_oracle.connect (' User name','Password','IP: Port number/Database') //user name, password, IP port number database6Cur =cnn.cursor ()7 returnCnn,cur8 9 Ten defclose_oracle (cnn,cur):
1, Student table1 --Create Table2 Create TableT_hq_xs3 (4XuehVARCHAR2(Ten) not NULL,5XingmVARCHAR2( -) not NULL,6XingbCHAR(1)default '1',7Nianl Number,8ZhuanyVARCHAR2( -)9 )Ten One --Add Comments to the columns AComment on columnT_hq_xs.xueh -
PROCEDURE Sp_auto_hourIsV_time VARCHAR2 (10);V_time1 VARCHAR2 (10);BeginSelect To_char (sysdate-1/24, ' yyyymmddhh24 ') into the v_time from dual;Select To_char (sysdate, ' yyyymmddhh24 ') into the v_time1 from dual;INSERT INTO Test select * from
Oracle Date-time functions Daquanto_date Format (time: 2007-11-02 13:45:25 for example)Year :yy two digits two-digit year display value:yyy Three digits three-bit year display value: 007yyyy four digits four-digit year display value:Month:mm number
DeclareInst_name varchar2 (100);Cursor Mycur isSELECT * from Tran_forward t where t.instrument_type_id= ' 3010 ';Query_row Tran_forward%rowtype;BeginOpen mycur; --Open cursorLoopFetch mycur into Query_row; --Place the record indicated by the cursor
In my test environment, two AIX operating systems were made into HACMP + oracle11g Single instance. Master and Standby libraries.Dynamic listening cannot be registered when the main library is switched to the standby repository.When
2015-10-23DirectoryResources[1] Lin Shuze. Oracle 11g R2 dba operation Guide [M]. Beijing: Tsinghua University Press, 2013[2] Oracle data file Management[3] Data File Management-oracle Management Guide[4] Oracle control files, data files, temporary
1. Use logical operation symbolsQuestion: Query for wages higher than 500 or job manager employees, but also to meet their initials in uppercase J?SELECT * from emp where (Sal > $ or job = ' MANAGER ') and ename like ' j% ';2. Use the ORDER BY
1, Baotou:CREATE OR REPLACE Package bawq_proc_page are-- bawq_proc_page is the packet header TYPE t_cursor is REF CURSOR ; -- dynamic cursor PROCEDURE proc_page-- stored procedure name ( cs_zbin INT: =
2015-10-24DirectoryResources[1] How to monitor Oraclezabbix monitoring Oracle[3] Oracle Performance monitoring common commands[4] Oracle database monitoring and fault maintenance[5] Oracle Monitoring query statement[6] Monitoring of the number of
--Create TableCreate TableT_hq_b (XZINGMVARCHAR2(Ten), ZhuzVARCHAR2( -), Zhis Number, BianhVARCHAR2(Ten) not NULL) (Initial 64K minextents1Maxextents Unlimited);--Add Comments to the columnsComment on columnT_HQ_B.XZINGM is 'name'; Comment on
SQL constraintsConstraints are used to restrict the type of data that is joined to a table.You can specify constraints (through the CREATE TABLE statement) When you create the table, or you can (via the ALTER table statement) after the table is
15, the creation of a function requires a return value, must be called in the statement, when more than one return value is required, using the Out parameter type, querying the property in the User_procedures table, querying the source code in the
:: Export data for specified service (ORCL) and password (PMIs) on remote machine (192.168.2.1) via exp command: The machine running the script must have Oracle @echo off @echo [data for backup PMIs system] Set hh=%time:~0,2% set HH=%HH: =0% set SID=
Auto-start setting of oracle11g on linux
Generally, it is best to manually start the oracle server. If this problem occurs, it can be solved on site, but it is also worried that sometimes the machine will fail. After Automatic restart, In order to
Processing When the oracle tablespace is too large
First, view the data usage of all tablespaces.
SELECT Upper (F. TABLESPACE_NAME) "tablespace name", D. TOT_GROOTTE_MB "tablespace size (M)", D. TOT_GROOTTE_MB-F. TOTAL_BYTES "used space (M)",
Oracle policy problemsOracle policies can restrict query, modification, deletion, and addition operations. A test is performed on the query as follows: begin -- Call the proceduresys. dbms_rls.add_policy (object_schema =>: name of the Schema where
Pagination of result setsTo make it easier to query data on a web page, it is often displayed by page. For example, the employee table is required to display only five rows of data at a time, and the next five rows are displayed. The following uses
In-depth understanding of oracle datetime timestampWe all know that date and timestamp are both expressions of date and time, but the two types of precision are different. The former is accurate to seconds, and the latter is precise to decimal
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service