A database can contain data tables of multiple applications. Tables of different applications can be stored in different schemas,At the same time, each schema corresponds to one user, and different applications can connect to the database with
In today's ATM, we use pure JDBC to process data. When we find the relationship between users, cards, and logs, after the user is saved, the User ID is used to associate the field with the card, while the number of inserted and updated rows is
Problem: ORA-12705 invalid or unknown NLS parameter value specified
The solution is as follows:
Change duser. language = EN in eclipse to duser. Language = ZH in myeclipse installation file, and restart myeclipse.
The connection parameters are as
Oracle job is a function provided by Oracle to regularly execute a stored procedure or package.
Main scenariosPerform related operations on the background at regular intervals. For example, save the data of one table to another at every night, and
How can I view the current number of connections in Oracle? You only need to use the following SQL statement to query it.
Select * from V $ session where username is not null
Select username, count (username) from V $ session where username is
I am reading the Oracle 10 Gb documentation today and have noticed irreversible compatibility.
Starting with Oracle Database 10g, the compatible initialization parameter becomes irreversible; that is, it cannot be set to a value that is less than a
DBV indicates that database verify can be used to verify whether a data file in the database is faulty. You can check whether a data file contains bad data blocks, for example:DBV file = D:/oradata/demo. DBF blocksize = 8192
Enter BDV in command
Generally, directory is created to use a Data Pump to import/export data. In fact, directory has many other functions, which will not be described in this article.
1. New directory syntax
Create [or replace] DirectoryDirectoryAs'Pathname';
For
UseOracle_instantclientConnect to Oracle Database
Oracle_instantclient is very convenient when PL/SQL accesses the database. You only need to configure Oracle Home and OCI libary in the refreence of PL/SQL to specify the Oracle instantclient
Pctfree:
The percentage of space used for the update operation is retained in the block. When the occupied space reaches the upper limit, new data cannot be inserted into the block;
Pctused:
Specifies the minimum percentage of space used by data
We know that in the Oracle database, a process can be terminated by kill session. The basic syntax structure is as follows:
Alter system kill session'Sid, serial #';
The kill session will be marked as killed, and Oracle will clear the process
Source: http://blog.csdn.net/shmiloy001/article/details/6284419
Abstract:
1. Select Sid, serial #, username from V $ session;
2. Alter system kill session '_ SID, _ serial #'; (based on the result of step 1)
You can use kill to delete a connected
System Function: sys_context
Terminal: The identifier of the terminal corresponding to the current session customer
Language: Language
Db_name: Current Database Name
Nls_date_formal: Date Format corresponding to the current session
++
There are two tables. One table is the parent-child hierarchical relationship stored in the supplier. That is to say, there are many subordinate small suppliers under a large supplier.The supply structure is as follows:Provider_code provider_name
Select GRP, site, item, sum (plan_qty), sum (diff_qty)
From (
Select/* case
When substr (productid, 1, 1) = 'l' then
'Sesl'
When substr (productid, 1, 1) = 'M' then
'Lcm'
Else
Substr (productid, 1, 1)
End "GRP ",*/
Decode (substr (productid, 1, 1),
Oracle 11G function set
Chapter 10All lower caseSelect lower (200 + 200), lower ('SQL'), lower (sysdate) from dualSelect first_name, last_name, lower (last_name) from employees where lower (last_name) like '% ur % ';-- UpperAll uppercaseSelect *
You can use the grouping_id function to filter records with the having clause, removing records that do not contain subtotal or total. The grouping_id () function can accept one or more columns and return the decimal value of the grouping bit vector.
You can use the following SQL statement in PL/SQL to query which tables in the current database are locked and which users are locking these tables:
SelectA. Owner, -- user to which the object belongsA. object_name, -- Object Name (table name)B.
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