Use sum to convert rows and columns

Use sum to convert rows and columns. The original table www.2cto.com is expected to display each IDX_CODE column in the table in the query results. The result table is as follows: create table test (IDX_DATA_ID NUMBER (12) not null, org_no NUMBER (2)

Set the startup environment variable of SQL * PLUS

Set the SQL * PLUS startup environment variable to d: \ oracle \ product \ 11.1.0 \ db_1 \ sqlplus \ admin \ glogin. SQL (the path of the above file depends on ORACLE_HOME), you need to find the file according to different versions. Www.2cto.com

Emca reconstruction EM in oracle in linux

In linux, emca re-build EM in oracle. If you change the machine name, you can re-create EM. Generally, you do not need to re-configure emca to re-create EM [oracle @ dev ~]. $ Cd/u01/app/oracle/product/11.2.0/dbhome_1/bin www.2cto.com recreate an EM

ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [4

ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1] error handling 1 I wanted to deploy Data Guard today, but the slave database reported an error at startup: www.2cto.com ORA-00600: internal error code, arguments:

Oracle Data Guard theoretical knowledge

Oracle Data Guard, RAC, Data Gurad, and Stream are three tools in the Oracle high availability system. Each tool can be used independently or in combination. They have different focuses and different application scenarios. RAC is designed to solve

Use of Oracle Database imp and exp

Frequently Used commands for Oracle Database imp and exp: www.2cto.com 1. import Data command: imp userid = fkprod/fkprod full = y file = xxx. dmp 2. export Database object command: use tools ---> export user object to export data tables only.

Decompress the cpio File

Decompress the cpio file and decompress the cpio file cpio-idmv [file | device] Back up data to a file or device to restore: cpio-icduv

Solution to Oracle startup failure caused by IP address modification in linux

In linux, Oracle cannot be started due to IP address modification. The main issue is to modify the/etc/hosts configuration file. Configuration before modification: www.2cto.com 127.0.0.1 localhost192.168.2.50 CCXFIT-DBSERVER # The following lines

Oracle Parallel usage

Oracle Parallel uses oracle Parallel (Parallel) to use 1. query the SQL code SELECT/* + Parallel (t, 8) */* FROM emp t; SELECT/* + Parallel (8) */* FROM emp t; SELECT/* + Parallel */* FROM emp t; 2. SQL code for creating an index: create index

Oracle year, quarter, month, week, day, Group

Oracle year, quarter, month, week, day, grouping Java code table 1: Date (exportDate) Quantity (amount) -------------- ----------- 14-2 month-08 20-3 month-08 2 14-4 month-08 6-6 month-08 75 24-10 month-09 23-11 month-09 45 04-8 month-10 5 04-9

Oracle TRUNCATE TABLE

Oracle truncate table Truncate is a SQL statement used to delete data TABLE content: syntax truncate table name parameter name is the name of the TABLE to be truncated or the name of the TABLE to delete all its rows. The following describes the

Oracle result set Cache

Oracle result set cache: oracle adjusts the result set cache with only three parameters. RESULT_CACHE_MAX_SIZE = 500 M/* Megabytes RESULT_CACHE_MAX_RESULT = 20/* Percentage limit = 3600/* Minutes, but all queries are saved only when

Oracle-based wm_concat (column) function usage

Oracle wm_concat (column) function in Oracle data, use the wm_concat (column) function, you can merge the selected field data values; 1. merge a single field value, for example: SQL: select t. id, t. name, t. price, t. count, t. uid from goods t;

SQL single-row functions in Oracle databases-TRIM of character Functions

Oracle Database SQL single-row function-TRIM function of the character function can remove spaces of strings. For example: [SQL] select TRIM ('s 'from 'ssmith') from emp; -- delete the specified character and the result is: mith select trim ('oralce

Change the default port in Oracle

Oracle changes the default port start listener [oracle @ localhost ~] $ Lsnrctl start stop listener [oracle @ localhost ~] $ Lsnrctl stop Step 1: Modify the Oracle port. stop the listening service Step 2: Modify the listener. ora and tnsnames. ora

RMAN delete expired & amp; delete obsolete

RMAN delete expired & delete obsolete read the official documentation for explanation: delete exipired [plain] If you run CROSSCHECK, and if RMAN cannot locate the files, then it updates their records in the RMAN repository to EXPIRED status. you

SQL subqueries for Oracle databases

The SQL subquery of the Oracle database is described in the preface, considering this situation: queries which employees have higher salaries than SMITH. To solve these problems, we need to first query the SIMTH salary and then compare the salaries

Example of stored procedures and stored functions and triggers

Example of stored procedures and stored functions and triggers 1. Example of stored procedures: SQL> create or replace procedure raiseSalary (empid in number) as pSal emp. sal % type; begin select sal into pSal from emp where empno = empid; update

Use PL/SQL to connect to other Oracle databases

Use PL/SQL to connect to other Oracle databases1. Download the Instant ClientOracle official website address: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.htmlThe downloaded file is a compressed file. The

Upgrade ORACLE database from 10.2.0.1.0 to 10.2.0.2.0

I was a newbie upgrading ORACLE databases from 10.2.0.1.0 to 10.2.0.2.0. Today I tried ORACLE database upgrades on a virtual machine twice, so I found that my initial thought was wrong! The original Database Upgrade requires two parts: 1. Upgrade

Total Pages: 2147 1 .... 1501 1502 1503 1504 1505 .... 2147 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.