Code, inserted into the Oracle database, Chinese garbled. With Pl/sql developer, but nothing.
Looking for, and said that the character set, and said nothing, do not work. Simply will heart a horizontal: I this code is the direct execution of the SQL
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,
Suppose there are two users:
Website Higher permissions
Websiteapp does not have permission to create a table
Table:
Under the website User:
Grant SELECT, INSERT, UPDATE, delete on table_test to Websiteapp;
Under the Websiteapp User:
--Common
Create a user in 12c--avoid ORA-65096 or ORA-65049 errors
From:Creating users in 12c-avoiding ORA-65096 or ORA-65049. (Document ID 1572404.1)
Apply to:Oracle database-enterprise edition-version 12.1.0.1 and laterInformation in this document applies
After Oracle XE executes the installer, the simple default is simplified Chinese_china. Al32utf8, the following methods can be modified to become ZHS16GBK
Sqlplus/as SYSDBA Select Userenv (' language ') from dual; SHUTDOWN immediate startup Mount
There is a feature in the project that needs to get data from an Oracle database, and it's a simple thing to replace the original SqlClient with a OracleClient call,
The result is far less simple than you think. There is a lot of need to install
public static bool DBBackup (string dmpfilename, String logfilename)
{
return value
BOOL result = FALSE;
Backup command, get "/C EXP username/password @ database service name full=y inctype=complete" from XML file
String backupcmd = Msgxml.getconfig
Oracle job is simply a function that Oracle provides to execute a stored procedure or package on a regular basis.
The main use scenarioRegularly in the background to perform related operations: such as 0 o'clock every night to save a table of data
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
Before looking at Oracle's version information, you know only one way to use the V$versions view, as follows:
Sql> select * from V$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition
Introduction to Oracle Database storage structure
We know that a database is a container for storing data, and its primary function is to save and share data. In this article, we introduce the basic knowledge of database storage data.First, the
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
As the project requires, look for the first few records in the Oracle table, oralcle by a rownum that can be used directly to get the required number of records, but the first SQL I used was: SELECT * from table where rownumtake out is not sorted by
Problem scenario: After you have entered the system error password multiple times, you are prompted that the current user is locked. Even more embarrassing, the passwords of other users, such as SYS, are also not remembered.
Solution: First unlock,
There is a table in the database, using Pl/sql to see the index of the table has not been dropped, but the data on the table is slow (query time is about 3 times times the original), and then rebuilt the index is good, I would like to ask why, in
Prepare data:
drop table test Purge;CREATE TABLE Test (ID number,Code varchar (20),Name varchar (20));INSERT into test values (1, ' 201401 ', ' aaa ');INSERT into test values (2, ' 201402 ', ' BBB ');INSERT into test values (3, ' 201402 ', ' CCC
1.oracle Chinese Concept Manual
Both the concepts of connection (connection) and sessions (session ) are closely related to the user process , but they have different meanings.
connections : Communication channels between user processes and Oracle
--undo Table Space Summary
--View all table space names
Select name from V$tablespace;
--Create a new undo table space and set automatic extension parameters;
Create undo tablespace undotbs2 DataFile ' D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\UNDOTBS02.
After SSH login under Linux:Su-oracle;Sqlplus/nolog;conn system/password; or Connect/as sysdba;Alter user username identified by password;=========================================1. Connect to the database using Oracle User Login[Email protected] ~]$
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.