I have been given a task to install oracle 11g on Dell T110 server which contains 16Gb ram and 1.5TB of disk space. It is running with - Oracle Enterprise Linux 5 (RH Kernel) X86-64-, I have successfully installed one db instance on this machine and now i need to create another 3 instances for this server. I belive i need to have 4 different oracle SID s for this. Iam not very familir with linux and even to get installed one instance took nearly 3/4 of a day. I need ur support to create 3 more instances of this db. please help me providing all the commands i should execute on shell. would the problem solve if i create 3 more linux users and install oracle db again for each user with different sids?
First off, are you certain that you need four separate database instances rather than four schemas in a single database? Ideally, you'd have only one Oracle database per server but would run multiple applications in multiple schemas in that single database. What other products (i.e. SQL Server) refer to as a "database" is similar in Oracle to a schema.
Assuming you do need four separate database instances, you don't need separate operating system users. You can use the same operating system user you used previously (generally "oracle"). When you're doing the install, you just need to choose a different Oracle Home for each database. I'm also assuming that you are setting the memory-related parameters appropriately during each install rather than relying on the defaults which will cause each database to use a substantial fraction of the 16 GB of physical RAM you have available. You'd need to ensure that the total memory allocated to all four database instances plus whatever RAM is required to run the operating system and whatever other applications you run on this server is less than the 16 GB of physical RAM available.
Related
I have installed an Oracle DB server on a windows 7 Machine with a single Instance (Single SID). I want to create another instance (SID) under the same oracle database, Can anyone help or guide.
Thanks
Zaheer
you can do it by providing another port number and service id. But 2 oracle DB in windows 7 is seems bad idea.
In addition, Installing two oracle service in windows 7 has it's own complexity.
I need to automate a selective table / user object backup I currently am doing via PL / SQL Developer.
The way I currently do it is via Tools/Export Tables and Tools/Export User Objects, manually select tables / objects, then set the options, choose destination and export. I do this from a windows laptop and the database is located in a suse linux server, both are in the same LAN. DB is running 24/7 and can not be shutdown. Also currently my oracle programming skills are very basic as I only do maintenance to this solution. I would like to keep doing the backup process in the windows laptop, but I would consider a server side script solution also and then retrieving the .sql files from server.
Thanks in advance
I wouldn't really call it a backup, but look at exp/imp and expdp/impdp (data pump) in the Utilities manual
As Gary implies exp/imp really isn't a backup solution. If this database is important to you or others, figure out how to use RMAN , which is usually configured to run in a mode that doesn't require the database to be shut down. Although it executes on the database host and for non-tape destinations must write its files to a filesystem attached to the host, it can be launched remotely.
RMAN is aimed at restoring/recovering the entire database, so if what you're looking for is only the ability to recover isolated objects it may not be for you.
I am working on a test server with an Oracle 11g installed. I was wondering if there is anyway I can replicate the database(environment + data) on my local Linux machine. I am using a CentOS 5.3 on Windows XP with SUN Virtual Box. On Windows I am using sqldeveloper client to connect to the 11g database.
There are a number of ways to move the data over:
Restore an RMAN backup on your test server
Export and import the data using exp/expdp/imp/impdp
Export and import using a transportable tablespace (Further Info)
Use database links to duplicate the data using SQL
You can use the Database Configuration Assistant to generate a template from your production database. This will give you all the parameters and tablespaces, among other things. You will need to tweak the configuration somewhat; for instance the file paths may be wrong, and some parameters may need downsizing. You can then feed that template into DBCA to clone the database on you Linux machine.
To get the schemas and data you should use Data Pump (rather than the older Import / Export utlities). This can be run off the command line or from PL/SQL.
Bear in mind that using production data in a development or test environment can cause you to run foul of data protection laws and other compliance issues. It depends on what your application does and what jurisdiction you operate under. But if your production system contains citizens' personal data you need to be very careful. There are products out there which will apply masking as part of a data import process (Oracle sells one) but they tend to be expensive. Rolling your own masking product can be tricky: if this applies to your situation be sure to get your compliance staff (legal team) involved early.
I would suggest you install Oracle XE which is free to use on your local if your development is not something that is related to core database features. You can then use the methods given above to pump data into Oracle XE and compile your code on it, though for development I don't think you would need data as much as that in production.
we have problem with slow insert statement using 40 bind variables as columns values. It runs several seconds when running over WAN link and we were not able to nail down the problem, until we used network analyzer. Every single execution of this prepared query required exchanging over 120 packets between client and server to complete. What we can do to to execute it more efficiently?
When I run the same insert with actual parameters(without bind variables) from the same host it completes in tens of miliseconds. There is nothing special about the parameters, there are only short varchars and numbers.
We are using Delphi 6 with ODAC, we tried various versions of ODAC and Oracle client with no avail. On server side we tried both Oracle 10 and 11.
TNS is not designed to work well over WAN.
If it's possible, rewrite your application to use other network layer, like HTTP, which is more efficient.
You can do it using Oracle HTTP Server, for instance.
Have you looked at External Tables? Replaces the need for SQL Loader
Requires Oracle 9i or above though
I have an Oracle 8.1.7 Server running on Windows 2000 Advanced Server in a Virtual Machine. We are currently using MS Virtual Server to host this. (The allocated hardware is powerful enough - we have 3.5GB RAM assigned, and a single 2GHz processor core, more than most servers in 1999)
One of the limitations of Virtual Server i sthe maximum size of Virtual Hard Disk (127GB) and the database I'm trying to import is 143GB.
To get round this problem, I'm trying to create the DB Datafiles on the physical HDD, which has sufficient space.
My problem is that I'm having difficulty creating a database instance on a network share.
Does anyone know how I can do this while retaining my youthful good looks (and hair!)?
Cheers,
Brian
You need the account your Oracle service is started under to have access to the network share.
Can't say it's a good idea to create an Oracle datafile on a network share, but it's a viable solution if you don't mess much with you datafiles and share accessibility.
You say 'import'. If you are using exp/imp, one option may be to only import individual users or tables, and slim them down individually.
Also, the size of an IMP file doesn't correlate to the size of the database. A 140GB exp/imp file may result in a much smaller database (or conversely, it could be larger as the exp/imp file only has the index metadata). Even a database with datafiles totalling 140GB could be smaller if those datafiles contain a lot of unused space.