In Oracle, sequence is the so-called serial number, which is automatically increased every time it is obtained. It is generally used in places where the sequence numbers need to be sorted. 1. Create sequence you must first have the create sequence
Oracle has not been used for a long time. If you want to verify an SQL statement tonight, the Oracle service cannot be started. Cold! since the Oracle service was started automatically every time it was started, the Oracle service was started
SQL
Statement1. obtain which users are using the database select username from V $ session; 2. obtain the SID select name from V $ database; 3. view the maximum number of sessions select * from V $ parameter where name like 'proc % '; 4. view all
Currently, after you print a report in pdf format in Oracle form, you cannot modify the data. Therefore, you plan to import the data in the report to an Excel table, however, make sure that the Excel format is exactly the same as the report format
1. view the table space name and size.
Select T. tablespace_name, round (sum (Bytes/(1024*1024), 0) ts_sizeFrom dba_tablespaces T, dba_data_files dWhere T. tablespace_name = D. tablespace_nameGroup by T. tablespace_name;
2. view the name and size of
To start and close a database,
Must have
Oracle
Log on as an administratorGenerally
SysdbaPermission user login. Generally, sys users use sysdba to start and close databases. The following describes the differences between the startup and shutdown
The execution plan result field is as follows: Field Name field type meaning
Statement_idThe value of the optimal statement_id parameter specified in the varchar2 (30) explain Plan statement,If set statement_id is not used in the explain Plan
When Asp.net stores the clob field to Oracle, the processing is normal if it is less than 4000 characters (the maximum length of oracletype. varchar. However, an error occurs when the value is greater than the value.
Solution ):
Test Table
Create or
Example:
create or replace procedure test is v_count number(4); cursor v_c is select * from "t2VoucherHandNo"; begin select count(*) into v_count from "t2VoucherHandNo"; if v_count>1 then raise too_many_rows; else for
Taking Oracle9i as an example in Oracle-DBA entry, advanced and diagnostic cases, Oracle10g is used as an example.
1. Oracle Server: instance and databaseInstance refers to a group of background processes/threads and a shared memory area. Database
Install Oracle 10.2.0.1g for Linux in Fedora Core 7
1. system resource requirements (these are all nonsense. Now all configurations can meet this requirement !! Haha)
1,At least1gPhysical memory,The hard disk space is large enough. (You can
#1. SQL .txt contains multiple SQL statements: Select * From Testa select * From testb select * From testcselect * From testd select * From teste select * From testf #2. the Perl script is as follows. The execution results will be placed in the CSV
// Start table definition
$ T_data = "zl_t_data ";
$ T_data_class = $ t_data. "_ class ";
$ T_data_keyword = $ t_data. "_ keyword ";
// Define the end of the table
Class odbc_oracle
{
VaR $ host = "php_oracle"; // defines the ODBC Data Source
VaR $
Recently, I began to reorganize my Oracle knowledge and write it out for record and sharing.
1. Install the Oracle server software.
2. Use the DOS interface to connect to the database
Run the following command:
Sqlplus/nolog press ENTERConn
The time consumed when preparing to use the Oracle execution plan mechanism to improve query performance new SQL statements is the most important component of the Oracle SQL statement execution time. However, by understanding the internal execution
Directly connect to the database using JDBC. The class file is as follows:
Import java. SQL .*;
Public class createtable {Public static void main (string ARGs []) {Connection con = NULL;Try {Class. forname ("oracle. JDBC. Driver. oracledriver").
Oracle query: retrieve the first record in each groupGroup by type field, sort by code, and retrieve the first record in each group
Method 1:
Select Type, min (CODE) from group_infoGroup by type;
Note: The columns after the SELECT statement
Xiao Zhong is connecting to the local database today, and there are various problems. So I am going to share it with you here. This is the first time I used the Oracle database, so it is quite unfamiliar, the installation process is default, so if
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