SYSDBA users can log in, the normal user login error is as follows:[Oracle@dbserver ~]$ Sqlplus/nologSql*plus:release 11.2.0.1.0 Production on Mon Oct 17 21:07:09 2016Copyright (c) 1982, 2009, Oracle. All rights reserved.sql> Conn
Recently done projects need to insert large amounts of data into the database, before having the impression of Preparedstatement.executebatch (), so that you can reduce the interaction with the database; today, online search for how to achieve,
① Make sure you have full control of the folder. Folder Point right--> property-> Security-> Advanced-> owner-> change to own-> edit own permissions for Full control.② changes the compatibility of Setup.exe to Windows Server 2003 (Server Pack 1).
DBA: With full privileges, the system has the highest privileges, and only DBAs can create the database structure.
RESOURCE: Users with RESOURCE permissions can create entities only and cannot create database structures.
Connect: Users who have
Oracle Set table space not Limited
1. View each table space status
SELECT file_name,tablespace_name,autoextensible from Dba_data_files;
2. The table space is infinitely large
alter DATABASE datafile '/U02/ORADATA/RSJDB/USERS01.DBF ' autoextend
Reason: Oracle jar pack not placed under web-inf/lib/
You also need to configure the in Pom.xml
com.oracleojdbc14system${project.basedir}/src/main/webapp/WEB-INF/lib/ojdbc14.jar
Path to the JAR package
Other available reference http://www.3
The character set and service side of the Oracle client are consistent, otherwise there will be garbled problems. changing the client character set
To connect to a server, you can query client settings:
SELECT * from V$nls_parameters;
Set
1, query the number of Oracle connectionsSelect COUNT (*) from v$session;2, query Oracle's concurrent connection numberSelect COUNT (*) from v$session where status= ' ACTIVE ';3. View the number of connections for different usersSelect
1. Oracle Environment Deployment
CentOS 6.6 Install Oracle 11GR2
2. Oracle Basic Knowledge
How Oracle databases Create new users.
How to view the user name and password in an Oracle database
How to view all user names in an Oracle database
First, enter the service. Point Refresh to see if Oracle's Tnslistener service is open.
Second, into the CMD run ipconfig look at your IP address, write it down.
Then, with everything this small software search Listener.ora, search to this
When a record is updated or deleted, it cannot be manipulated, or is locked, and sometimes, when we do update or delete on Oracle, there is no time to get the result of the operation,
has been in the process of being processed, it is time to
Sometimes you have to go to the database and sometimes you can't even.
It is possible that the current number of connections on the database has exceeded the maximum value that it can handle.
Select COUNT (*) from v$process--current number of
1. Choose the appropriate Oracle optimizer
There are 3 Oracle optimizer types:
A. Rule (rule-based)
B. Cost (based on costs)
C. CHOOSE (optional)
Set the default optimizer to pass various declarations of optimizer_mode parameters in the Init.ora
Understanding of the syntax and performance analysis of ORACLE UPDATE statements:
For convenience, the following simple models are established and some test data is constructed:In the BSS of a business admissibility subsystem,--Customer Information
--Start
First, we prepare the test data.
CREATE TABLE TEST
(
NAME VARCHAR2,
birthday DATE
);
INSERT into TEST VALUES (' John ', DATE ' 2014-12-14 ');
INSERT into TEST VALUES (' Dick ', DATE ' 2013-12-14 ');
INSERT into TEST VALUES (' Harry ',
Table structure:
Name Subject Score
John Language 89
John Math 73
Dick Language 73
Dick Math 73
Required Format:
Name Subject Score
John Language = 89, digital =73
Dick language = 73, digital =73
Query statement:
Select Name, Wm_concat (to_char) (
In the query can not avoid the sorting, general write SQL we will add sort fields.
If the sort field is a string, that's a bit of a hassle.
For example, a number field should have been designed as an integer, but designed to be a varcher type.
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