1. Understanding Oracle External Tables
External table Definition: The structure is stored in the data dictionary, and the table data is placed in the OS file in the table
Role: Querying the database for OS file data and loading OS file data into
The relevant code is as follows:
1. Create sequence:
Copy Code code as follows:
CREATE SEQUENCE Sequ_data_datainfo INCREMENT by 1-START with 1 nocycle nocache Noorder;
2. Create triggers:
Copy Code code as follows:
1. Turn off all Oracle services. Can be shut down in Windows Services Manager;2. Open the registry: Regedit Open the path:Hkey_local_machine\system\currentcontrolset\services\ removes all Oracle-initiated service names under this path, which
INSTR (source string, target string, start position, match ordinal)
In Oracle/plsql, the InStr function returns the position of the string to be intercepted in the source string. Retrieves only once, that is, from the beginning of the character to
I. Environmental description
SOURCE database:
IP Address: 192.168.137.100
Sid:catalog
User name: Rman
Password: Rman
Target database:
IP Address: 192.168.137.101
Sid:orcl
User name: Rman
Password: Rman
Create a tnsname to the source database on
Looking at PD, double-click a table, view its preview label, and then find the CREATE statement for a table, as follows:
Copy Code code as follows:
CREATE TABLE Company_info (
company_id NVARCHAR2 (m) not NULL,
area_id NVARCHAR2 (50),
to see if an Oracle database is in archive mode
Sql> select Name,log_mode from V$database;
NAME Log_mode
------------------ ------------------------
TEST Noarchivelog
Sql> Archive Log List
Database log mode No Archive mode
Automatic Archival
Problem Description: When creating a view under Scott's user, error: Insufficient permissions.
(Other users, etc.)
Workaround :
Log on as a DBA user
[SQL]
Copy Code code as follows:
Sqlplus/as SYSDBA
Give Scott user permission to
--The first method: Query Dba_tab_columns
Copy Code code as follows:
Select Column_name,data_type,data_length
From Dba_tab_columns
where table_name =upper (' table name ')
ORDER BY column_name
--This method requires DBA
Directory structure:
1_ Crazy Java_ Crazy Software _ Showengi teacher _oracle_oracle installation of the server
Video content includes: oracle10g server download, installation, uninstall and things to note.
2_ Crazy Java_ Crazy Software _ Showengi
Mode 1: Direct utilization. NET Oracle-driven connectionsInstalling the Oracle Client driver packageLocate the server-side installation path: E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN under Tnsnames.ora, overwrite the file with the client
The test found that even in 11.2, the problem still existed:
Sql> SELECT * from V$version;
BANNER
--------------------------------------------------------------------------------
Oracle database11genterprise Edition release11.2.0.1.0-64bit
ORACLE RAC principle: In a single application environment, all servers use and manage the same database in order to spread the workload of each server, require at least two or more servers on the hardware, and require a shared storage device. It
Citation Link: http://blog.csdn.net/w183705952/article/details/7367272The second: The growth strategy for setting the ID is native, but you need to create a globally used sequence named Hibernate_sequence (the name is the default sequence name of
Purpose: How do I define a base type, reference type, and record type variable in PL/SQL?Define a variable of the base type1 SetServeroutput on ;2 3 --using variables of the base type4 Declare5 --defining basic variable Types6 --defining basic
Decode (condition, value 1, return value 1, value 2, return value 2,... Value N, return value N, default value)The function has the following meanings:IF condition = value 1 ThenRETURN (translation value 1)elsif condition = value 2 ThenRETURN
Tip: Configure Microsoft LoopBack Adapter as your system's primary network adapter. Workaround: Add Hardware, Control Panel, (Win7 and then no hardware added, you can enter it in cmd and enter Hdwwiz.exe to turn on adding hardware) I've also
There is already a openjdk in the system, the default JDK is it, not the Oracle JDK, do the following to set the Oracle JDK as the default!First, let's say we've installed and configured the Oracle JDK, but the "java-version" display in the shell is
Recently, when converting the original numeric character field to a number, the general report error: Invalid number.How do I find out which non-numeric characters are recorded? It's a bit of a hassle. The following is an Oracle DB-translate
1. First, look at the directory object, for viewing only.SELECT * from Dba_directories;2. Create directory object: (note D:\APP\EXPDP must have Oh, and will import the DMP method under this folder easy to import OH).CREATE OR REPLACE DIRECTORY expdp_
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