Serveroutput is a sqlplus configuration parameter, not a database configuration parameter, modifies and saves sqlplus configuration parameters, so you do not have to reset each time you open the Sqlplus.
Set the method as follows:
1. sql> Set
Receive Contract_no and ITEM_NO values and look in the inventory table if the product:
Shipped, assigned in Arrival_date 7 days after today
Ordered and assigned in Arrival_date to one months after today
There are no orders and no shipments,
Prompt when deleting users in Oracle: Oracle cannot delete current connection users can use the following statement
SQL code
Sql>
Copy Code code as follows:
Select username,sid,serial# from V$session;
USERNAME SID serial#
---------------
Note the point:
1. If open in Pl/sql and other tools, directly modify the following code [Italic bold section] to perform
2. To ensure that the path exists, such as "D:\oracle\oradata\Oracle9i\" is the path you want to save the file exists
/* is
1. Install the required patch pack for the oracle11g, install the CD-ROM on all, access to the CD's server directory: (preferably through Oracle's official documentation to determine which packages need to be installed)
2. Modify the user
When you write a stored procedure, you use the following SQL statement
Copy Code code as follows:
SELECT MAX (re_date) into v_re_date
From t_recording
WHERE ID = ' 100010010102 '
Logically, the result of a query based on this
Copy code code as follows:
--Created on 2010/11/04 by Wangnan
Declare
--local variables her e
I integer;
TYPE t_table is Table of VARCHAR2 (a) INDEX by VARCHAR2 (2);
V_t_table t_table; The
TYPE t_pg3 is TABLE
One, close the database
[Oracle@rhel5] $sqlplus/as sysdba
Sql>shutdown immediate;
Second, close the monitoring
[Oracle@rhel5] $lsnrctl stop
Iii. deletion of Oracle_base
I'm switching to root here.
[Root@rhel5] #rm-rf/s01
Iii. Clearance of
In this case, if there is duplicate data in the temporary table, whether the primary key field is BUSINESSID, or if a whole row has duplicates, it will report a violation of the unique PRIMARY KEY constraint error.
Method: Group BY XX has count (*)
SQL1:
Copy Code code as follows:
--1, viewing the name and size of the table space
SELECT T.tablespace_name, round (SUM (Bytes/1024 * 1024)), 0 ts_size
From Dba_tablespaces T, Dba_data_files D
WHERE T.tablespace_name =
Demand:
Currently contact with the BI system, due to the business system transactions have a lot of, often some executives need to see all the records, but do not want to scroll, want to see all, and then think of the form of string concatenation.
Today we have a statistic that asks for all the days of the month, and if the result of one day is 0, it needs to be displayed, namely: Date number of transactions transaction amount 2009-4-01 1 Ten 20
1. Optimize the application and business logic, this is the most important.
2. Database design phase paradigm and the flexible application of the inverse paradigm. In general, for frequently accessed but infrequently modified data, internal design
SQL SELECT statement Complete order of execution:1. The FROM clause assembles data from different data sources;
2. The WHERE clause filters the record rows based on the specified criteria;
3. The GROUP BY clause divides the data into multiple
This example describes the core steps of PHP connecting to Oracle databases. Share to everyone for your reference, specific as follows:
1, modify php.ini file, open Extension=php_oci8.dll extension.
2, copy the PHP installation
1. Install Oracle Client
The prerequisite for connecting to Oracle is to install Oracle Client on the SQL Server server. Oracle client download addresses are as follows:
(i) The concept of an indexAn index is a database object related to a table or cluster, which provides a fast access path for querying data, reduces disk I/O, and improves retrieval efficiency.The index is composed of index values and rowid two
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