Oracle users, tables, and tablespaces

View users Select *From dba_users   View User table Select *From user_tables   /* Formatted on 2012-01-20 20.20.10:32:56 (qp5 v5.149.1003.31008 )*/Select distinct D. table_name, C. tablespace_name ind_tbsp_nameFrom user_indexes  select

Oracle view build date

Ref: http://www.adp-gmbh.ch/ora/ SQL /table_cast.html       Create or replace type date_obj as object (DT date)/create or replace type date_table as table of date_obj/create or replace function date_range (from_dt in date, to_dt in date) return

Oracle Union primary key query problem!

Recently, derivative work is required to import data from several tables to one table, where data may be duplicated. Therefore, data comparison is required before import. Method 1: I used group by having count (*)> 1 to extract the duplicate data

(Wondering) I don't know if it's a. Net driver or an Oracle client.

The new oracle11g database was used yesterday. It was a relatively simple problem. I should have done something about configuring TNS and modifying connectstring. Who knows? A user name and password error is reported as soon as the database is

Several Oracle statements

1. Loop DeclareX number: = 0;BeginX: = 0;LoopX: = x + 1;/* If x> = 10 thenExit;End if ;*/Exit when x> 10; -- this sentence serves the same purpose as the above if statement, but it is so concise.Dbms_output.put_line ('Internal: x =' | X );End loop;

Use the SQL * Plus query tool to connect to the Oracle database

before connecting to the database server, first, you must enable two Oracle-related services in the control panel-Administrative Tools-service of Windows: oracleorahome92tnslistener (listener service) and oracleservicechstone (instance service ), if

Oracle statements used to determine whether a table exists when creating a table

Declare CNT number; Begin--- Query whether the table to be created existsSelect count (*) into CNT from user_tables where table_name = 'entry _ modifystatus ';--- Delete the table if it exists.If CNT> 0 thenDbms_output.put_line ('table exists not

Oracle connection string

1. Connecting via TNS "Data Source = NEWDB; User ID = SYSTEM; Password = admin "; 2. Connecting Without TNSNames. ora "Data Source =" +"(DESCRIPTION =" +"(ADDRESS_LIST =" +"(ADDRESS = (PROTOCOL = TCP)" +"(HOST = 127.0.0.1)" +"(PORT = 1521)" +")" +")"

Efficient statements in Oracle

1. Connection sequence in the WHERE clause: Oracle uses the bottom-up sequence to parse the WHERE clause. According to this principle, the join between tables must be written before other where conditions, and those conditions that can filter out

Solution to Oracle service loss

Working overtime today, we found that all oracle services on the database server were lost-that is, there were no oracle services in the Service Manager, such as OracleOraDb10g_home1TNSListener and OracleServiceORCL.Solution:1. Export all oracle

Oracle 10g installation problem: Configure Microsoft LoopBack Adapter

Two days ago, when installing Oracle 10g, I encountered the problem of "Microsoft LoopBack Adapter configured as the system's primary network Adapter", and found other solutions on the Internet, the following is a summary: Stop the current "Local

Summary of data dictionary technology and common data dictionaries in Oracle

 I. Oracle Data Dictionary A data dictionary is a place where Oracle stores database information. It is used to describe data. For example, the Creator information, creation time information, tablespace information, and user access permission

View Oracle Performance Parameters

0. database parameter attributesCol PROPERTY_NAME format a25Col PROPERTY_VALUE format a30Col DESCRIPTION format a100Select * from database_properties; Select * from v $ version; 1. Find the SID of the current session, SERIAL #SELECT Sid, Serial #

Oracle analysis function over and Window Function

Analysis Function over and Window Function  I. analysis function overOracle provides analysis functions starting from 8.1.6. analysis functions are used to calculate a group-based aggregate value. What is different from aggregation

Oracle Database Connection Method

After Oracle Db Provider is installed, the path of Oracle. DataAccess. dll is D: \ app \ Administrator \ product \ 11.2.0 \ client_1 \ ODP. NET \ bin \ 2.x.The following shows how to use OleDb, msdaora, System. Data. OracleClient. OracleConnection,

Recommended for a new book on the classic practical database-about MySQL and Oracle [go to mengguang]

In the new year, I summarized some of the books I have read before. Many of them are worth reading and reading, and many are also sleepy after several pages. Below are some books related to databases that I think are good at. I can't wait to share

Oracle table left Outer Join, right Outer Join, all Outer Join

--- 1. Normal equal connections Select E. last_name, D. department_name From employees e, departments d Where E. department_id = D. department_id; --- 2 left Outer JoinSelect E. last_name, E. department_id, D. department_nameFrom employees eLeft

[Import] common Oracle functions: idcard15to18 () ID card 15-bit to 18-bit Functions

Create or replace function idcard15to18 (card varchar2) return varchar2 is Type tiarray is table of integer; Type tcarray is table of char (1 ); Results varchar2 (18 ); W tiarray; -- number Array A tcarray; -- character array S integer; Begin If

) Views on oracle update statement syntax and Performance Analysis

For convenience, the following simple model is created and some test data is constructed:In BSS,-- Customer data tableCreate Table MERs(Customer_id number (8) Not null, -- customer IDCity_name varchar2 (10) Not null, -- CityCustomer_type char (2)

Configure listeners on the Oracle server

Manually configure the server listener: The Listener Configuration includes parameters of the listener protocol, address, and other related information. Listener Configuration is stored in a configuration file named listener. ora, which is located

Total Pages: 2147 1 .... 1964 1965 1966 1967 1968 .... 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.