First locate the Tnsnames.ora file in D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN under the Oracle installation directory
Open tnsnames.ora Add database you want to link Example 226 = ( DESCRIPTION = (address_list =
I. Software PreparationAddress: Oracle websiteinstallation package: Because of personal learning, it is possible to install the server side. No client required.A total of two compressed files, extracted together into a directory. I use:
I am not familiar with many Linux and so on, if there is wrong place also ask you to correct me. Thank you.Planning to learn the Oracle,rman backup and restore function, so the virtual machine is installed, using the CENTOS7 x86_64-1611 version,
--query for positions that are not duplicatedSelect distinctJob fromEMP;--Search for annual salary, alias, alias not enclosed in single quotation marks.SelectSal* A asNianxin fromEMP Sal;--the specific data is displayed in this form: The employee
I. DML operations on a view1. Create a View V_personCreate or replace noforceview V_personAs Select * from the personwhere ID between 1003 and 1007;2. Insert operation into view V_personInsert into V_person (id,name) values(1010, ' J ')"Note" The
1. You can use the VI command to view files under Linux in a similar notepad.2.Redhat shut down the firewall, command systemctl Stop FIREWALLD view the Firewall status command systemctl status FIREWALLD3. Log in to the database Sqlplus/nolog
First, database security: System security, data securitySystem permissions: Permissions for the databaseObject permissions: Permissions to manipulate database objectsScenario: A set of database objects, such as tables, views, sequencesIi. Database
My ETL version is 6.0Oracle version is 11.2.0The error is as follows:Driver class ' Oracle.jdbc.driver.OracleDriver ' could not being found, make sure the ' Oracle ' Driver (JAR file) isinstalled.Oracle.jdbc.driver.OracleDriverThe reason is that the
Relevant concepts understand:Table: A basic collection of data stores, consisting of columns and rowsViews: Extracting logically related data collections from a tableSequence: Provides a regular number of valuesIndex: Make index query more
Javaweb projects are slightly different from plain Java projects when connecting to an Oracle database.Normal Java project will ojdbc.jar build path directly;The Javaweb project may not work and needs to be set up again:Right-click on the project
NVL () function in OracleHow Oracle's NVL function is usedThe total value of a field is obtained by querying, assuming that the value bit null will give a preset default valueSelect NVL (SUM (T.DWXHL), 1) from Tb_jhde t where zydm=-1Here the Nvl
PostgreSQL has a function of generating sequences, which makes it easy to build data. Here I use Oracle to implement the function of the generate_series function of Pgsql.POSTGRESQL.t_girl=# SELECT * from Generate_series (1,10);
In the recent inspection of a unit system, found that the database has a number of instances, directly to one of the instances of the query, the display is missingDefeat. After discovering that it needs to be specified, modify the environment
Description: Existing a demand, date table is stored in the date and whether the holiday (0-weekday, 1-holiday), now need to take the date table in the nearest working day. For example, 2017/07/23 (Sunday) The most recent working day should be
Sometimes we need to go to the customer site to do security, occasionally need to stop the database cluster, and then stop. Usually we take a more secure approach than a brute force approach.
Savage Way.
#/u01/app/oracle/product/10.2.0/
A common method: INSERT into table name (Id,name,age,status, field N) VALUES (' id ', ' name ', ' age ', ' status ', ' field n '); --Suggest using thisInsert into table name values (column values);Example: INSERT into User (Id,name,age,status,role)
1. Create userCreate user KD identified by 123456;2. Grant permission to connect to the databaseGrant connect to KD;3, the Scott User's EMP table is authorized to KD can be queriedGrant SELECT on Scott.emp to KD;Grant CREATE table to KD;4. Reclaim
1. First table analysis (be sure to perform this step, otherwise the query empty table may not be accurate)Select ' Analyze table ' | | table_name| | ' compute statistics; ' from User_tables;2. Re-query which tables are empty (this step can be
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