随着ArcGIS10.1的到来,特别是ArcSDE10.1默认直连之后,我们直连的一个要求就是要安装数据库的客户端软件,那么比如我们使用ArcGIS Server10.1连接ArcSDE10.1的数据源,数据库客户端的安装就显得非常重要了。 下面我们就简单说明一下在Linux环境下安装Oracle
随着ArcGIS10.1的到来,特别是ArcSDE10.1默认直连之后,我们直连的一个要求就是要安装数据库的客户端软件,那么比如我们使用ArcGIS Server10.1连接ArcSDE10.1的数据源,数据库客户端的安装就显得非常重要了。
下面我们就简单说明一下在Linux环境下安装Oracle的客户端
操作系统:Redhat 6.1 64Bit
数据库:Oracle11.2.0.1 客户端 64Bit
1:我们需要创建一个数据库的操作系统帐号:比如ora
2:使用SSH将数据库客户端软件传输到ora用户下
执行安装之前,我们需要对install文件夹和runInstaller有775的权限即可
[ora@redhat6 client]$ ll total 24 drwxr-xr-x. 8 ora oinstall 4096 Jul 19 2012 doc drwxrwxrwx. 4 ora oinstall 4096 Jul 19 2012 install drwxr-xr-x. 2 ora oinstall 4096 Jul 19 2012 response -rwxrwxrwx. 1 ora oinstall 3230 Aug 15 2009 runInstaller drwxr-xr-x. 14 ora oinstall 4096 Jul 19 2012 stage -rw-r--r--. 1 ora oinstall 3924 Aug 17 2009 welcome.html3:注意在root用户下执行xhost+这样才可以调出图形化界面
4:安装就比较简单了,其实安装有个系统依赖包检查,其实这个可以跳过去,好多包其实都安装过了(不过还是谨慎点好)
5:安装过程到最后,需要使用root用户执行两个脚本,系统会提示的
[root@redhat6 app]# cd oraInventory/ [root@redhat6 oraInventory]# ls ContentsXML logs oraInst.loc oui install.platform oraInstaller.properties orainstRoot.sh [root@redhat6 oraInventory]# ./orainstRoot.sh Changing permissions of /home/ora/app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /home/ora/app/oraInventory to oinstall. The execution of the script is complete.
还有一个
[root@redhat6 client_1]# ls assistants dc_ocm javavm odbc perl sqlj bin deinstall jdbc olap plsql sqlplus cdata diagnostics jdk OPatch precomp srvm cfgtoollogs has jlib opmn racg sysman clone hs jpub oracore rdbms ucp crs install ldap oraInst.loc relnotes uix csmig install.platform lib ord root.sh utl css instantclient network oui slax wwg cv inventory nls owm sqldeveloper xdk [root@redhat6 client_1]# ./root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= ora ORACLE_HOME= /home/ora/app/ora/product/11.2.0/client_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed.
PATH=$PATH:$HOME/bin export PATH export ORACLE_OWNER= ora export ORACLE_HOME=/home/ora/app/ora/product/11.2.0/client_1 export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:usr/lib export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export LANG=en_US
然后在ora用户下执行netca配置netservicename,配置完毕之后就可以使用了
[ora@redhat6 ~]$ sqlplus system/oracle@orcl SQL*Plus: Release 11.2.0.1.0 Production on Sat Jun 16 03:38:24 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
另外需要注意的就是,因为我们发布服务是需要使用ArcGIS Server用户来发布服务,那么需要ArcGIS Server用户可以使用Sqlplus执行,那么就需要
1:要么我们的oracle安装在/opt目录下
2:要么Oracle安装在其他目录下,ArcGIS Server用户可以对这个目录有相关权限
因为以后ArcGIS Server10.1连接SDE数据源默认都是直连,所以会经常碰到在Linux环境下安装数据库的客户端,仅供参考!
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.