1. in oracle, the data table alias cannot be added with as, for example:
Select a. appname from appinfo a; -- correct
Select a. appname from appinfo as a; -- Error
Maybe you are afraid of conflicts with the keyword as in the oracle stored procedure.
This article will discuss and share with you some common classic queries of oracle SQL. You are welcome to add them. You can also share some classic queries. In this article, if you think there is any better solution to every problem, you are
Name
Create sequence-CREATE a new serial number generator
Syntax
Create sequence seqname [INCREMENT increment]
[MINVALUE minvalue] [MAXVALUE maxvalue]
[START start] [CACHE cache] [CYCLE]
Input
Seqname
Name of the serial number to be
Step-by-Step Oracle part of Notes 1. Do not use the user name/password directly/as sysdba is the operating system authentication method, change the security method sqlnet. SQLNET. AUTHENTICATION_SERVICES = (ETS) indicates that operating system
Oracle log mining command 1. Log Mining 1.1 supplement log command (log contains rowid)
alter databaseadd supplemental logdata;
1.2 DML-based log mining example: SCOTT updates a record. I want to mine the operation time and SCN, as shown in
Oracle Installation Question 1. note: before installing oracle, make sure that your IP address and host (Computer) name are not modified. 1. download the package and place it in the English Directory d: \ tools (do not have any Chinese characters) 2.
Oracle Logminer Performance Test 1 test Introduction 1.1 The purpose of the test is to simulate the running status of LogMiner parsing online/archive log files in different environments and analyze the data obtained through the test, verify the
SQL Optimization-the role of hint currently, oracle uses the CBR optimizer, so in some cases, the machine will execute the SQL as needed, of course, oracle makes decisions based on some of its own information, such as statistical information.
Binding Oracle Database to ActiveReport can interact with multiple data sources, including OLEDB, SQL, XML, and collection objects. This article describes how to bind an Oracle database to ActiveReport. This is an easy task. The following describes
You can use SQL statements to view the database structure in Oracle. You can view the table structure based on the following statements:
1. select. column_name field name,. data_type data type,. data_length,. data_precision integer,. data_Scale
Auto increasing id within oracle 1. Create table: Java code
declare num number; begin select count(*) into num from all_tables where table_name=upper('eric_emp_tbl') and owner=upper('eric'); if num=1 then execute immediate '
Oracle Stored Procedure paging code
[Html]/********* Stored Procedure paging code **********/-- Baotou create or replace package pck_my is type c_my is ref cursor; procedure page_moed (v_table in varchar2, -- table name current_page in out number, --
Oracle Autonomous Transactions (Autonomous transaction) Oracle Autonomous TransactionsAutonomous transactions allow you to leave the context of the calling transaction, perform an independant transaction, and return to the calling transaction
All scripts of the oracle backup plan are evenly stored in/dsk3/bk/scripts.
① [Oracle @ sia scripts] $ cat connect. rcv (connect to the rman script) connect target sys/oracle @ prod; ② [oracle @ sia scripts] $ cat del_obso.rcv (delete logs with
SHUTDOWN: Active processes prevent shutdown operation: When shutdown immediate is used to shut down the database, hang is used to view the alert Log, and SHUTDOWN: Active processes prevent shutdown operation is encountered. That is to say, some
Oracle accidental deletion and recovery
Query deleted datarows: select * from table name as of timestamp to_timestamp ('delete time point', 'yyyy-mm-dd hh24: mi: ss ') // Needs Auth [flash any table] data table flashback: alter table name enable row
Error in invoking target 'mkldflags ntcontab. o nnfgt. o' of makefile solves the following error when installing the oracle11g r2 database software: solution: this problem is generally caused by gcc. The following software package is missing after
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