Access Oracle Database Demo in C language in Linux

Prerequisites 1. the Linux environment already exists. Oracle has been installed. This demo Runtime Environment Local Environment RedHat linux as 4, ORACLE 10GLocal Database sid orcl, ip: 127.0.0.1, User name: kingbi, password: kingbi, table

Oracle paging technology

1. Use two layers of nesting SELECT *FROM (select a. *, ROWNUM RNFROM (SELECT * FROM edw_t100_bal_all)Where rownum Where rn> = 21; 2. Use between... and .. SELECT *FROM (select a. *, rownum rn from (SELECT * FROM edw_t100_bal_all))Where rn

Basic Oracle problems: segment extent block

L relationship between extent and segment The number of Oracle blocks for each extent is determined by the extent size/DB_BLOCK_SIZE. The extent size is determined by the initial, next, determine parameters such as pctincrease. The number of extents

Generate and view Oracle AWR reports

You can view the current configuration through dba_hist_wr_control. The current awr is a data snapshot every hour, and the retention time is 7 days. SYS @ peng SQL> select * from dba_hist_wr_control;     DBID SNAP_INTERVAL             RETENTION      

Simple SQL statement for Oracle row-to-column Conversion

Drop table ABC; Create table ABC (id number, name varchar2 (50), kcName varchar2 (50), score number );Insert into ABC values (1, 'zhang san', 'China', 88 );Insert into ABC values (2, 'zhang san', 'mat', 68 );Insert into ABC values (3, 'zhang san',

Oracle Database regularly executes some scripts

DBMS_Job package usageIt contains the following sub-processes:Broken () process.Change () process.Interval () process.Isubmit () process.Next_Date () process.Remove () process.Run () process.Submit () process.User_Export () process.What () process.1,

Oracle uses sequence filling proxy primary key auto-Increment

Create the table tmp_tab and use the sequence seqId with the primary key id Create sequence: create sequence seqId start with 1 increment by 1; Create table space: create table tmp_tab (id integer constraint seq1 primary key, col1 varchar2 (10),

Oracle cautiously grants dba permissions to users

// Let's take a look at the authorized binary tree below. The actual point is a diagram (complex diagram ):Sys/\Test001 (dba) test002 (dba)/\\T1 t2 t3--// As shown in the preceding Binary Tree, assume that both test001 and test002 are granted dba

MySQL queries all parent classes from subclass IDS

MySQL table structure Id name parent_id --------------------------- 1 Home 0 2 About 1 3 Contact 1 4 Legal 2 5 Privacy 4 6 Products 1 7 Support 1 The MySQL code is as follows: SELECT T2.id, T2.name FROM ( SELECT @ RAS _ id, (SELECT@

Install MySQL 5.5.11 in Linux

1. First install a Library: Sudo apt-cache search libaioSudo apt-get install libaio-dev 2. Add users and user groups after installation: Sudo groupadd mysqlSudo useradd-r-g mysql 3. decompress the mysql package: Cd localSudo tar zvfx service1/mysql-5

Oracle stored procedure code example 1

1. Stored Procedure for inserting a large amount of test dataCREATE OR REPLACE PROCEDURE INSERTAMOUNTTEST(ST_NUM in number,ED_NUM IN NUMBER)ISBEGINDeclareI number;BeginFOR I IN ST_NUM..ED_NUM LOOPInsert into tb values (I, I, '3', '3', '3', 100, '0 ')

Script for automatically entering data into MySQL in Linux

#! /Bin/sh# Define the strcture of tableTABLE = "(username char (50) not null, password char (20) not null, uid char (10) not null, gid char (10) not null, maildir char (100) not null, domain char (20) not null, active char (1) default '1 ');"#

About Oracle commit

Oracle's commit is to submit data (here the release lock is not the lock table). Before the commit, all the operations in front of you are updated with the memory and are not updated to the physical file. From the user's perspective, the execution

Java project, notes for migrating data from Oracle to dream Database

DM database is a chinese database and is said to be compatible with Oracle. I personally migrated my data from Oracle11g to the database of dream 6.0 and encountered some problems: 1. Incorrect field nameAlthough dm SQL is compatible with the Case

Oracle automatic backup and recovery

1. Automatic Backup You can use the exp method (provided that you have the export permission) and write a script for the operating system. If you have a windows system, you can write a bat file and use exp to export it, then, add BAT to the

Oracle dynamic SQL considerations ORA-00911: invalid characters

Lv_ SQL: ='Insert into ETL_SUCESS_AMOUNTSelect SEQ_ OS _ETL_AMOUNTID.NEXTVAL AS AMOUNTID, 1, AMOUNT_DATA, AMOUNT_HOUR,Serviceid, portalid, mouduleid, actionid, RESERVE1_ID, RESERVE2_ID, RESERVE3_ID,RESERVE4_ID, AMOUNT, AMOUNT_TIMEFrom(SelectTrunc

View Oracle tablespace and create 16 K tablespace

Select f. TABLESPACE_NAME,(T. TOTAL_SPACE-F. FREE_SPACE) "USED (MB )",F. FREE_SPACE "FREE (MB )",T. TOTAL_SPACE "TOTAL (MB )",(ROUND (F. FREE_SPACE/T. TOTAL_SPACE) * 100) | '%' PER_FREEFROM (SELECT TABLESPACE_NAME,ROUND (SUM (BLOCKS *(Select value/1,

Character Set modification for Oracle Server database garbled characters

Recently, an Oracle 10 Gb database was installed. When dbca created the database, the character set was not selected or the database was incorrectly selected. After the data was imported, all Chinese characters were garbled (funny, chinese garbled

Oracle edge export side compression method

What should I do if the exported file is too large to be stored in the file system? An effective solution on Unix is to create a named pipe. Export data files through pipelines Root@www.bkjia.com ~ $ Mknod exppipe p Root@www.bkjia.com ~ $ Exp

Oracle 10.2.0.4 cannot be installed on x64 to start EM dbconsole

After Oracle 10.2.0.1 is upgraded to 10.2.0.4, an error occurs in the EM console. This is because the authorization of the enterprise manager database control component and the CA certificate has expired. The official solution is to apply Patch 83502

Total Pages: 1013 1 .... 866 867 868 869 870 .... 1013 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.