Original: Installation and configuration of Oracle 11g client.The database and the client are on different machines.Before installing, navigate to the following directory on the server where the Oracle database is installed.Change localhost in
/* Description: If the corresponding user and table space already exists, you need to delete the corresponding user and tablespace first and then re-establish */--delete user xdayweixin cascade;--Delete table space Drop tablespace
ORACLE Chapter II Common operationsTo modify column information in a table:ALTER TABLE Vendor_master Modify (vencode varchar);Add a default value constraint to a column in a table ALTER TABLE mytable Modify (name VARCHAR2 () default ' abc ');To add
Table structure:CREATE TABLE TEST ( ID INTEGER, BIRTHDAY TIMESTAMP);inserting dates into the timestamp type field using JDBCImport Java.sql.connection;import Java.sql.drivermanager;import Java.sql.preparedstatement;import
1 References System.Data.OracleClientPath:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.OracleClient.dll2 Installing the Oracle client1 website DownloadWin32_11gr2_client.zipNote the version and installation steps.2 configuration file
CREATE OR REPLACE Package Pkg_testAsTYPE Myrctype is REF CURSOR;PROCEDURE Get (p_id number, p_rc out myrctype);END pkg_test;-------------------------------------------------------------------CREATE OR REPLACE Package BODY pkg_testAsPROCEDURE Get
Because each device collects GPS data, it is decided to implement the sub-table. The original thought is to use JDBC to achieve, but there will always be unexpected things happen, it is depressed (such as the summary of the problem). So after
Spanning tree coding requirements with Oracle stored procedures
Field
Describe
Note
Id
Primary key, 32-bit UUID
Type_code
Coding
such as: 1-01-003
parent_id
When using Oracle, the DBA uses the shut immediate, which results in: 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/54/47/ Wkiol1r-zn-xgommaah2sskgw8s749.jpg "title=" qq picture 20141203091532.png "alt="
Open Sqlplus at night enter the user name and password will not always be logged, as the previous line of code "ora-01034:oracle not available" error Solution Ideas:1, check whether the service is started,2, if it has been started, the database does
Notes on common Oracle commands
Login without a password: sys as sysdba
View all current databases: select */name from v $ database;
View the current database connection user: show user
View All Tables of the current data: select table_name from
45 useful Oracle query statementsObtain the first day of the current month. Run this command to quickly return the first day of the current month. You can replace "SYSDATE" with any date value to specify the date to be queried. Select trunc (SYSDATE,
Hibernate Association ing and hibernate Association ing
Relationship between entitiesAssociation, aggregation, dependency, combination, inheritance
Link Type:One-to-multipleMany-to-oneOne-to-oneMany-to-many
Student table and grade Table:
1 --
Maintenance command crs _ * discarded in Oracle12cRAC _*
Crs_stat is commonly used in Oracle 10g and 11g RAC to monitor the running status of RAC. However, the crs_stat display is incomplete, so we will perform a secondary encapsulation of crs_
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