Yesterday I just transferred the database from sqlserver to Oracle, and today when the use of the problem, the insertion of data is no problem, the problem is in the update, the prompt: ORA-01036: Invalid variable name/Number
The answers to this
Database links in Oracle can be used for cross-database queries, but problems often occur during use, often failing to test inexplicably. In fact, pay attention to the following issues to avoid many such problems.
1. It is best to set the link to
Problem Discovery
6
Month
24
Day
Afternoon, found A Local ClientProgramAn error occurred while inserting data. The reason is the table. B The constraint becomes "?", Because it contains Chinese characters, the data
Oracle TextText Retrieval: (you must first createContextOrCtxcatIndex, and then as follows) (you can alsoFromAdd, Score (10)To observe the score of the retrieved item)
1.Exact match of wordsSelect CBID, title (Column name) From emergency (Table
Oracle substr function usageObtain the substr (string, start_position,
[
Length
]
)For example:Substr (
'
This is a test
'
,
6
,
2
) Wowould
Return
'
Is
'
Substr (
'
This is a test
'
,
6
) Wowould
from http://edu.chinaz.com/Get/Database/Oracle/059301006107324955.asp single record function in SQL 1. ASCII returns the decimal number corresponding to the specified character. SQL> select ASCII ('A') A, ASCII ('A'), ASCII ('0') zero, ASCII ('')
Which of the following conditions is used for where comparison? :
Equal to: =, , >=, <>
Including: In, not in exists, not exists
Range: between... and, not between... and
Matching Test: Like, not like
Null test: Is null, is not null
Boolean links:
Method 1
Step 1: log on to SQL/plus to execute the command (no sequence is available)
Set Time on; (Note: Enable time display)Set autotrace on; (Description: Enable Automatic Analysis Statistics and display the running results of SQL
■ SQL statements and descriptions for creating data files Create tablespace to create a tablespace and its data file create temporary tablespace create a temporary tablespace and a temporary data file (temporary data file is a special type of
■ Log Switching SQL> alter system switch logfile; ■ Add a redo log file groupSQL> alter database add logfile2 group 4 ('/export/home/opt/product/10.1.0.3.0/oradata/ldfsys/redo04.log') Size 10 m; ■ Add members of the redo log file groupSQL> alter
■ ListenerProgram # LSNRCTL start ---> Start# LSNRCTL Stop ---> stop# LSNRCTL status ---> Status# LSNRCTL help ---> help ■ One routine can only access one database, and one database can be accessed by multiple routines at the same time.A routine
1 Overview
In Oracle, there is a special level of permission-sysdba permission,Sysdba has the highest permissions on the Oracle system, and has advanced permissions such as opening, closing, and restoring a database,The sys users frequently
Map a table on the remote server to a local materialized view using the following statements:
-- -- Create a test environment dblink: Create Database Link lnk connect To User1 identified By Pwd1 using ' (Description = (address_list =
1. view the EM port of the database instance
In the ORACLE_HOME \ install \ portlist. ini file.
Ii. Sid of the database instance
The SID length cannot exceed 8 characters. The instance name cannot exceed 30 characters
Iii. Common commands
Start/
Instance 1
Create or replace trigger update_portauser_pass after update on cas_porta_user for each rowdeclare -- local variables herebegin update security_credential C set C. column_value =: New. column_value where c. principal_id in (select P.
Create
Or
Replace
Trigger Usertotemp after
Insert
Or
Update
Or
Delete
On T_cs_one
For Each row
Declare
Integrity_error exception;
Errno
Integer ;
Errmsg
Char (
200 );
Tem1
Varchar2 (
10 );
Begin
If Inserting
Then
Run the following commands in sqlplus:
Connect system as sysdba; -- Be sure to log in as DBA; otherwise, an error will be reported belowShutdown immediate; -- this is to disable the session currently connected to the database. If a session is
Problem:
---------------------------
When Oracle listening service is startedThe oracleorahome92tnslistener service on the local computer is stopped again after it is started. Some services are stopped automatically if there is nothing to do, such
Oracle File System: control file (. CTL), data file (. DBF), log file (. Log)
There is also a parameter file for the three files. The parameter file is not an effective part of the database system. When the database is started, the parameter file
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