During data correction today, I wrote a batch of simple update statements. The results showed a problem in sqlplus execution, prompting me to enter the value of the corresponding parameter?
The original SQL statement is: Update trans_record set
1. Create a temporary table to store the generated SQL statements, and determine whether to perform the add operation based on the table name and table comment.
Create Table temp_table(Table_name varchar2 (64 ),Table_comments varchar2 (128
I wrote a function module for sales query, but there was no error in sorting by bar code/warehouse conditions during the test, as long as you query by date there will be an error message "Ora-01791 is not a selected expression", so check my SQL
Oracle SQL optimization rules:
Use the in operator as few as possible. Basically, all in operators can be replaced by exists.
The SQL statements written in are easier to write and understand, but the SQL statements written in always have low
1. Create a table
Create Table stud (Sid int,Sname varchar2 (50 ),Age number,Score number (4, 2 ))And insert some data (manually insert some data)2. Create a function
Create or replace function fun_getscores (V_age in stud. Age % Type)Return
Day: dd number 12 dy abbreviated Fri day spelled out Friday ddspth spelled out, ordinal twelfth month: Mm number 03 mon abbreviated Mar month spelled out March year: YY two digits 98 yyyy four digits 1998 24-hour format time range: 0:00:00-23:59:59 .
Create and modify users
The create user statement creates a user. When a user connects to the Oracle database, it must be verified. There are three types of authentication in Oracle:
Database
External
Global
The default value is database
3. Set System ParametersModify # vi/etc/sysctl. conf to add the following code:
Kernel. Shmall = 2097152Kernel. shmmax = 2147483648(Generally, you can set the maximum shared memory to half the physical memory. If the physical memory is 2 GB, you can
Some additional test results:1. Storage space of geometric objects
In order to test the size of the geometric object storage space of Oracle Spatial and ArcSDE in a relatively real environment, two line data and surface data with about 0.1 billion
Detailed description of parameters of Oracle listener listeners and summary of LSNRCTL commands
# Listener. ora network configuration file: F:/Oracle/product/10.2.0/db_1/Network/admin/listener. ora# Generated by Oracle configuration
This is the result of my study. You are welcome to repost it and exchange it. However, you must provide the link to this article: Sorry ......
My laptop uses a 64-bit Windows 7 operating system. In the 32-bit operating system era, Oracle is no
In Oracle, there is a wmsys user. Like sys, system, and other users, this user is created during Oracle installation.
The function starting with WM is the function of this user.
Wmsys users are mainly responsible for managing the daily work
Work notesImport instances after user export. task requirements:
1. Export all objects of the user test1 from Windows Server A and import them to the Test2 user on Linux Server B. (The test1 password is test1passwd or can be exported using the
From: http://hi.baidu.com/jiaju111/blog/item/86ccbf4ebb2816ccd0c86a60.html
The links between databases are established on the database link. To create a DB link, you must firstSet the link string on each database server.1. The link string is the
To use this class, use the jar package to connect to Oracle.
Steps:
1. Load the driver
2. Establish a connection
3. Obtain the SQL statement object (statement)
4. Execute SQL statements
5. release resources
Import Java. SQL. connection;
(1) Pay attention to the following points when writing a stored procedure:1> Value assignment: =Logic equal to =2> comments a single line of code --Annotate the code block /*---*/3> string connector |4> declare variables in the variable declaration
Occi Introduction
Occi: Oracle C ++ call interface (occi), that is, Oracle C ++ API, allows you to access the Oracle database using object-oriented features, local classes, and C ++ languages.
The advantages of occi are based on the standard C ++
The following describes the general process of using JDBC:
1. Load the driver class of a database, usually using class. forname ("Driver Class Name");
2. Connect to the database connection con = drivermanager. getconnection (URL, username, password )
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