Oracle 12c save state works only in open mode [closed] - oracle

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
Hi DBA's,
I have a query. I am using below query to save the state of PDB's but it works only when CDB is in open state but fails in case of open read only. Even in case of open ready only the PDB's might be in read only or mounted state. Is there any work around or am i missing something?
"ALTER PLUGGABLE DATABASE ALL SAVE STATE"
Thanks for your help

The container has to be open for write otherwise the save state cannot be "saved" within the containers meta data.
also, can only save the state of READ ONLY or READ WRITE (not MOUNTED) pluggable databases.
finally, this function is only available in 12.1.0.2 (not 12.1.0.1)
hope this helps
Dave

Related

How data stores in Database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I've one doubt, it could be very lame, so please bear with me.
How and where database store its data ?
Online says
This default option creates database files that are managed by the file system of your operating system. You can specify the directory path where database files are to be stored. Oracle Database can create and manage the actual files.
But file's data is actually in disk. No?
Is it a disk where it writes its data or something else is being performed?
Can anyone help me understand how it works?
here's a bit of light reading on Oracle physical storage structures. Try not to get too excited. It's a thrilling read :)
https://docs.oracle.com/cd/E11882_01/server.112/e40540/physical.htm#CNCPT1389
You're probably finding Oracle's documentation confusing because they give you a few different ways to manage storage. It's always on disk, but its a question of how it's on disk. You can do anything from having Oracle use raw partitions on a disk (bypassing the OS filesystem) to using data files on a filesystem. It's partly a question of performance vs. convenience and partly that Oracle has been around a very long time.

Oracle Change Username [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I use turkish character in my username "İ", its works fine while logging on oracle enterprise with browser but when I try to connect database with visual studio it makes problem so I think 3 diffrent kind of idea may able to help solve this issue.
-How can I change my oracle username ?
-How can I make vs with working turkish characters too("Ç, Ş, İ)"
-How can I create new user without lost any data in oracle manager( İts like create an alias to referance old user's info. tables roles privileges everything must be same, just user name different )
Thank you who feel try to help
Well,
you cannot change schema name referring to Tom Kyte's answer but you can export the data and then import it to another user
with working turkish characters too ("Ç, Ş, İ)" - I am not sure if there is a good reason to put national characters to the variable/schema names. Isn't it enough to use English? English was never the language of my country (and I've changed already 2) and it was always enough!
according to this answer you can create a script to grant everything to a new user and then according to the answer here you can easily change schema every time e.g. on login

Make a local oracle DB from server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
I am using Oracle SQL Developer, I connect to my friend's DB and use it. Now I want to have a copy of this DB on my own PC to change it and test something. I installed Oracle. now how I can do this?
You can make use of Oracle Datapump.
Note. Oracle uses the term "schema" where for example mysql uses the term "database".
At your friend site:
expdp userid=system directory=DATA_PUMP_DIR dumpfile=myschema.dmp logfile=expdp_myschema.log schemas=MYSCHEMA
At your site:
impdp userid=system directory=DATA_PUMP_DIR dumpfile=myschema.dmp logfile=impdp_myschema.log
Best of luck,
Bjarte

Oracle shared memory realm does not exist [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am running Oracle 11 on a windows 7 machine. I have this strange problem from this morning. When i try to connect to the database, it says 'shared memory realm does not exist'. However when i use Database Configuration Assistant, select a database and click next, it does 'retrieving database information'. During that time, when i connect to database it says 'Oracle shutdown in progress' message. Once the 'retrieving database information' is done (and i dont go beyond that step in Database Configuration Assistant') I am able to connect to the database without any issues.
I compared the environment variables and the windows services running before and after working and its all the same.
Question is, what does 'retrieving database information' in Database Configuration Assistant do that fixes 'Shared memory realm does not exist' problem?
Any suggestions would be helpful.
P.S. I checked other questions related to this subject in stackoverflow and didnt find anything useful or i did not understand it properly. So please do not close this question as duplicate.
Thanks Guys
I resolved the issue by doing the below.
1) Choose Start > Programs > Oracle - HOME_NAME > Configuration and Migration Tools > Administration Assistant for Windows.
2) Right-click the SID.
3) Choose Startup/Shutdown Options.
4) Choose the Oracle Instance tab.
Select Start up instance when service is started, Shut down instance when service is stopped, or both.
I restarted the machine and it worked.

what happens when a fresh dump is re-imorted in same user (Oracle) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a development system and a production system. Now If i make changes in my development schema like new tables.. change in table structures etc. take dump and re import on the production schema..then the previous production schema would be cleanly over written or what would be the outcome? i dont want to take risk with this one thats why asking from the experts here.
(i use imp/exp)
thanks in advance.
If you import a dump into a database it either fails (because the tables/views/indexes/constraints are already there) or (depending on your imp options) it overwrites the existing tables and existing data - so don't do it.
Using exp/imp to synchronize a schema is not possible
You should use a proper script management (i.e. having incremental SQL scripts to migrate a schema from version x to x+1) rather than relying on all changes applied correctly to a development database.
Those scripts have to be stored in a version control system such as svn or git.
Some schema versioning systems you might want to look at are
Liquibase
Flyway

Resources