Oracle user Creation
Create user xxxxx identified by xxxxx
PROFILE DEFAULT
DEFAULT TABLESPACE USERS
Temporary tablespace TEMPTS01
Account unlock;
Note that you must first check whether there are two tablespaces in your database: USERS and
Oracle Temporary Tables (Temporary Oracle table)
1. Create a temporary table syntax
A. on commit delete rows defines how to create A transaction-level temporary table
Create global temporary table TABLE_NAME
----- (COUMNS ...)
----- As select...
First, sudo apt-get install mysql-server mysql-clientAfter the installation is complete, the mysql service starts to run. You need to change the root password, but this situation often occurs.'Access denied for user' root' @ 'localhost' (using
I have been engaged in Oracle database development for more than two years and have always felt that I am a half bucket of water. During this period, I also read some documents and books. I feel that I should first learn about Oracle database
Operating system environment:
RHEL4.6 and MySQL 6
Symptom:
Tomcat is installed on this computer as a web server, and a project is deployed to connect to the mysql database through jdbc. However, Chinese input and output are garbled.
Solution:
1.
Operate on the Oracle database machine:
◆ 1. Create two views in Oracle Based on KB 193893. Use the SYS account.
The default script path is oracleora92rdbmsadminxaview.
◆ 2. After creating two views, you need to add Public permissions to these
The replication or migration methods and steps are as follows:
Uninstall the previously installed Oracle before the transfer (if any)
1. Copy the installation directory of the original ORACLE database to the installation directory of the new machine
Read Chinese data from MySQL ??? (Question mark) garbled solution:
$ Db = & ADONewConnection ('mysql ');$ Db-> PConnect ($ dbhost, $ dbusr, $ dbpwd, $ dbname );Mysql_query ("set names 'gbk'"); // you can add this sentence.$ SQL = "select * from
1. Use the show character set statement to list available CHARACTER sets in the database:Mysql> show character set;2. to list the Collation rules of a character set, use the show collation statement.For example, to view the proofreading rules for
Operating Environment:
Oralce 10G, Red Hat Linux Enterprise 5 (vmvm 6.0)
Map the Oracle10g ISO file to the VM optical drive and run/media/cdrom/runInstaller.
Error message:
Bash:./runInstaller:/bin/sh: bad interpreter: insufficient Permissions
You can directly modify the sqlnet. ora file under $ OREACLE_HOME/network/admin and add the following content:
Tcp. validnode_checking = yes
# Ip addresses allowed for access
Tcp. invited_nodes = (ip1, ip2 ,......)
# Ip addresses not allowed for
Query methods for top 10 records in each database
Oracle Database:
Select * from (select * from tab order by id desc) where rownum
MySQL database:
Select * from tab order by id desc limit 0, 10;
(Here, keyword limit startid, rownum is like
Code:
# Include # Include # Include "/usr/local/include/mysql. h" // location of the mysql header file installedUsing namespace std;String host = "database address ";String user = "user Name ";String pwd = "password ";String dbname = "Database
Environment: CentOS 6.2 + Oracle 11.2.0.3 1. the Statspack installation and installation process is to create a user perfstat and create corresponding objects under this user. Oracle provides existing scripts to create these objects, we only need to
The MySQL master-slave structure is based on mysql incremental logs, which is different from the master-slave replication structure.
In the master-master replication structure, any changes to the data inventory on one of the two servers will be
Oracle DbLink Test
Source database:
Computer Name: beijing
Database Name: orcl
Target database:
Computer Name: suzhou
Database Name: ocp
0. Create a test table for the target database
SQL> conn scott/password
Connected.
SQL> show user;
The USER is
1. Check if the DISPLAYvariable is set. Failed
Solution:
# Xhost + // switch to the root user input
# Su-Oracle // switch to an oracle user
$./RunInstaller // run the installer
Xhost is used to control the access permissions of X
Share a MySQL function written yesterday. The purpose is to obtain the week number of the month.
DELIMITER $
USE't _ girl $
Drop function if exists 'weekofmonth' $
Create definer = 'root' @ 'localhost' FUNCTION 'weekofmonth '(F_datetime DATETIME)
Today, I accidentally found that Oracle could use SQL to parse XML files, so I checked some information with curiosity. List the examples for interested colleagues.
Select * from xmltable ('$ B/Person/Student' passing --- specify the root node
The root User Password of MySQL is often easy to forget. It has a mechanism to handle permission errors by skipping the permission check and starting. This article introduces how to forget or reset a MySQL password in Windows and Linux respectively,
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