Question about tablespace in Oracle 10 g

In 10g, this view is used to store the State of a tablespace. I need to be able to check whether or not a tablespace is in read-only mode. I understand that I can EM used to show status, but EM tells me that the tablespace is in read/write mode, and users insist that the tablespace is in read-only mode.

Thank you in advance for your help!

Are you sure? I think that in READING-WRITING and ONLINE means the same thing.

SQL> select tablespace_name from dba_tablespaces;

TABLESPACE_NAME
--------------------------------------------------------------------------------
SYSTEM
UNDOTBS1
SYSAUX
TEMP
USERS
TEST

6 rows selected.

SQL> alter tablespace test read only;

Tablespace altered.

SQL> select tablespace_name, status from dba_tablespaces;

TABLESPACE_NAME
--------------------------------------------------------------------------------
STATUS
---------------------------
SYSTEM
ONLINE

UNDOTBS1
ONLINE

SYSAUX
ONLINE

TABLESPACE_NAME
--------------------------------------------------------------------------------
STATUS
---------------------------
TEMP
ONLINE

USERS
ONLINE

TEST
READ ONLY

6 rows selected.

SQL> alter tablespace test read write;

Tablespace altered.

SQL> 

Edited by: P. Forstmann may 28, 2009 18:36

Tags: Database

Similar Questions

  • Question about Tablespace default temporary

    Hi, all.

    It is a "Newbie Question"

    If I execute the following SQL statement:

    SQL > select tablespace_name, content from dba_tablespaces, this is what I get + other tablespaces.

    NOM_TABLESPACE... CONTENT

    SYSTEM ....................................... PERMANENT
    TEMP .......................................... TEMPORARY

    My question is about the TEMP tablespace. What is the default permanent tablespace defined by the system? In OEM grid control, where it is explicitly stated that it was defined by the permanent system default storage space?

    How to know for sure if storage space is the temporary tablespace default or not, without run the drop command and get the following message:

    SQL > temp DROP TABLESPACE;
    Drop tablespace temp
    *
    ERROR on line 1:
    ORA-12906: cannot remove the temporary tablespace default


    Thank you!

    Published by: ORA_UMAIR on February 18, 2009 10:12

    Published by: ORA_UMAIR on February 18, 2009 10:13

    Published by: ORA_UMAIR on February 18, 2009 10:13

    Select * from database_properties
    where property_name = 'DEFAULT_TEMP_TABLESPACE ';

    HTH...

  • Question about EM and Oracle Net Manager

    Good afternoon

    It is said in the Net Services Administrator's Guide:
    To start Oracle Net Manager from the Oracle Enterprise Manager console, select
    Service Management from the Tools menu, and then select Oracle Net Manager.
    Nowhere I see a 'Tools' menu, or an option 'Service Management' in EM.

    Question: Y at - it a 'Tools' menu that I missed? If Yes, where? If there is no menu 'Tools', is it possible to start Oracle Net Manager of EM, as shown in the Net Services Administrator's Guide?

    Thank you for your help,

    John.

    PS: possibly useful additional info:
    4NT8>emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
    https://Orahost.john.local:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running.
    ------------------------------------------------------------------
    Logs are generated in directory E:\Oracle\product\11.2.0\dbhome_1/Orahost.john.local_dbca/sysman/log
    BANNER
    --------------------------------------------------------------------------------
    
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    As far as I KNOW, "Oracle Enterprise Manager console" refers to the java console for OEM 9i. A Tools menu there. Are you sure you read your documents version db?

  • question about ultrasearch in oracle 9i R2

    Hi master,

    What is ultrasearch in oracle 9i R2?

    It is used for what purpose? I installed oracle 9i R2 on windows server 2003, but when I create new databases it gives the error that ' manually create ultrasearch and run file/admin/w0config.sql.

    What is this file?

    Why should I deploy ultrasearch admin tool? and how? What is the wksys schema?

    What is all this?

    Help, please

    Thanks and greetings
    VD

    "What is all that?'"

    Easy...
    It's just your next question 'I can't be bothered to read all the documentation.

    -----
    Sybrand Bakker
    Senior Oracle DBA

  • Question about silent install Oracle client

    I created a perl file to do the installation in silent mode and everything works great. At the start of the installation window YES happens (as a type of deal dos mode). Users have nothing to do, as the response file takes care of it, but they do not like the YES (go figure). Can someone tell me which option need me to hide it?


    RESPONSEFILE_VERSION = 2.2.1.0.0

    UNIX_GROUP_NAME =""

    FROM_LOCATION="\\chwiris1\Applications\Oracle\#ORACLE10\Client\10.1.0.x_clients\Disk1\stage\products. XML ".

    FROM_LOCATION_CD_LABEL = < unspecified value >

    ORACLE_HOME = "C:\Oracle\PS_HOME."

    ORACLE_HOME_NAME = "PS_HOME".

    TOPLEVEL_COMPONENT = {"Oracle.client", "10.1.0.2.0"}

    SHOW_SPLASH_SCREEN = false

    SHOW_WELCOME_PAGE = false

    SHOW_CUSTOM_TREE_PAGE = false

    SHOW_COMPONENT_LOCATIONS_PAGE = false

    SHOW_SUMMARY_PAGE = false

    SHOW_RELEASE_NOTES = false

    SHOW_EXIT_CONFIRMATION = false

    SHOW_DEINSTALL_CONFIRMATION = false

    SHOW_DEINSTALL_PROGRESS = false

    SHOW_INSTALL_PROGRESS_PAGE = false

    SHOW_REQUIRED_CONFIG_TOOL_PAGE = false

    SHOW_OPTIONAL_CONFIG_TOOL_PAGE = false

    SHOW_CONFIG_TOOL_PAGE = false

    SHOW_RELEASE_NOTES = false

    SHOW_ROOTSH_CONFIRMATION = false

    SHOW_END_SESSION_PAGE = false

    SHOW_EXIT_CONFIRMATION = true

    NEXT_SESSION = false

    NEXT_SESSION_ON_FAIL = false

    NEXT_SESSION_RESPONSE = < unspecified value >

    DEINSTALL_LIST = {"Oracle.client", "10.1.0.2.0"}

    SHOW_DEINSTALL_CONFIRMATION = false

    SHOW_DEINSTALL_PROGRESS = false

    ACCEPT_LICENSE_AGREEMENT = true

    SELECTED_LANGUAGES = {"en"}

    INSTALL_TYPE = "Custom".

    oracle.client:DEPENDENCY_LIST={"oracle.networking.netcltprod:10.1.0.2.0","oracle.utilities.util:10.1.0.2.0","oracle.rdbms.sqlplus:10.1.0.2.0","oracle.java.jdbc:10.1.0.2.0","oracle.winprod:10.1.0.2.0","oracle.swd.opatch:10.1.0.2.0"}

    Oracle.Winprod:DEPENDENCY_LIST = {"Oracle.P2K.oo4o:10.1.0.5.0", "Oracle.P2K.ODBC:10.1.0.2.0", "Oracle.P2K.OleDb:10.1.0.2.0", "' Oracle.P2K.ODP .net: 10.1.0.2.0" "}

    Oracle.Networking.netca:OPTIONAL_CONFIG_TOOLS = "{}".

    Oracle.options.OPS.VIPCA:OPTIONAL_CONFIG_TOOLS = "{}".

    Oracle.options.OPS.csscommon:OPTIONAL_CONFIG_TOOLS = "{}".

    s_recodHTTPPort = < indeterminate value >

    We used perl to automate on Unix environment and "-silent" worked. There are other options as I show '-nobackground ' and '-noconsole ". You might want to try.

    I also see that you have SHOW_EXIT_CONFIRMATION = true. Your users are invited to the exit at the end of installation screen?

  • Question about "flash_recovery_area" in Oracle 11 g

    Hi, all.

    I am running Oracle 11 g on RHEL4.

    1 SQL query results:

    SQL > SELECT * FROM V$ RECOVERY_FILE_DEST;

    NAME SPACE_LIMIT SPACE_USED NUMBER_OF_FILES
    ======================================================================
    / orahome10/ccedwdb/flash_recovery_area 50 G 20G 450

    But, when I go to "/ orahome10/ccedwdb/flash_recovery_area ', location all I see is around 35 files .arc using space of 1.4 G, I would like to find a different location of files 415 +?

    If you have deleted something manually, you need to overlap on rman for let the FRA to know you did the delete otherwise he will think that you still have the disk.

    for cross-checking
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14192/maint002.htm#sthref692

    Coskan Gundogar

    http://Coskan.WordPress.com

  • I have a question about the functionality of Oracle Identity Manager...?

    Hi friends
    I have a question about the features of Oracle Identity Manager.
    Here's my question:
    Self-management is possible network passwords (reset / unlock) with Oracle Identity Manager 9.1.0.2

    Very grateful.

    What Kevin suggested this means that you are managing accounts and their password by IOM. If your condition is the same then follow:

    Re: error during password reset using the self-service portal

  • Question about the Oracle database resource management

    Good evening
    I have a question about Oracle database Resource Management (DRM) for Oracle Database 10 g. I had an incident which, in a development/UAT environment (different instances, same box, don't ask), a developer wrote a wrong SQL statement that consumed 99% of the CPU. Currently, there is no limit of resources on two cases of db, and the developers don't want limits. However, my manager wants a method to prevent something like this does not happen. If I use the Oracle database resources management, create a consumer group (called "DevEnv") at 40% CPU usage, what will happen if a user of DevEnv runs a bad SQL statement that normally consumes 90% CPU again? Anyone would take a different approach? Thank you.

    Sincerely,
    Sho Fukamachi

    782718 wrote:
    If users in the case of "db_uat" use 60% CPU would be users who belongs to DevEnv pending 'db_test' cannot be used more than 40% CPU, so their queries become slower at their end? I would like to know if this behavior works the same in an environment of multiple instances. Thank you.

    Yes, because the available processor would be 40%, they use more, while.

  • A question about the license of Oracle 1 g R2 Enterprise Edition

    Hi all


    I have a question about Oracle license and I would be grateful if you could help me thanks.

    I installed an Oracle (11g R2 Enterprise edition) server on a virtual linux machine. The pc being used for this purpose
    is my cell phone company (so a professional and not a personal computer). However, I use this Oracle Server
    only for the purpose, i.e. learning only to run the examples in my Oracle Press books (SQL, PL/SQL and some)
    administrative tasks) just to learn things.

    There is absolutely no data related to my business, stored or used on this server. Whenever I want to work with my
    data of the company, I use the Oracle server of the company that has the appropriate license of course. So, as I said, I
    Use this server of the company on the virtual machine only to run applications/programs in my Oracle Press books just for
    learning and I'm the only person who uses this server (no remote for other users).

    The reason why I needed to install this server on my PC, is that our DBA could not provide a training environment
    for me, with all the privileges and features.


    Should I buy a license for this Enterprise Server installed on my virtual machine?


    Thanks in advance,
    Dariyoosh

    The OTN license agreement:

    >
    LICENSE RIGHTS
    We grant an exclusive, non-transferable, limited license to use the programs only for the purpose of developing, testing, prototyping and demonstrating your application and not for other purposes. If you use the application you develop in this licence for any internal or for any commercial or purposes data processing production, or you want to use the programs for purposes other that those permitted under this agreement, you must get a production version of the program by contacting us or a reseller of Oracle to obtain the appropriate license. You acknowledge that we may not produce a production version of the programme and the development efforts undertaken by you at your own risk. We can check your use of the programs. Program documentation, if any, may be consulted online at http://otn.oracle.com/docs.

    Ownership and Restrictions all retain us the property and rights of intellectual property in the programs. Programs can be installed on a single computer only and worn by one person in the operating environment identified by us. You can make a copy of the program for backup purposes.

    You can not:
    -Use programs for your own internal data processing or for commercial or production purposes, or programs for any purpose except the development of your application.
    -use the applications you develop with programs for any internal data processing or commercial or production without obtaining an adequate license from us;
    -continue to develop your application after using for any treatment data internal, commercial or production end without obtaining an adequate license from us, or Oracle reseller;
    -remove or change any brand of program or a statement of property rights;
    -put the programs available in any manner to a third party;
    -Use programs to provide a third of training;
    -assign this contract or give or transfer the programs or interest to them to another person or entity; -cause or permit engineering reverse (unless required by law for interoperability), disassembly or decompilation of the programs;
    -disclose the results of benchmark tests of any program without our prior written consent.

  • Small questions about Dataguard

    Hello

    I have a few questions about Dataguard. I'm new to DG, carry me so for the display of these fundamental questions:

    We plan to install Oracle 12 c to Win 2012 R2 with primary and physical intelligence on different physical servers. We are looking for HA solution, but cannot afford to license CARS. The two primary & Eve are going to be in the same data center connected via a 1 gigabit network. So I have a few questions related to it.

    (a) since both of our primary & Eve is going to be in the same data center with good connectivity. Can I assume that although Data guard is more DR solution, in our case it would be HA solution since we have no network latency.

    (b) is it safe to assume that where primary fails, then the day before can automatically take the role of primary education without any manual intervention, possibly using Dataguard broker?

    (c) so I understand that where primary breaks down, the existing connections transfer automatically from primary to standby db (most recent primary), but how my web based java application will know that more recent connections must be sent to the standby db Server (more recent primary)? I guess net Oracle has a provision to handle this? Who can be automated?

    (d) given that I have only 2 physical servers, can I deploy broker Dataguard on a normal PC (since it is a thin client) assuming the PC is kept in the data center and is online 24/7?

    (e) I was reading about the modes of Protection, account required to our current situation & infrastructure, I choose 'Maximum availability Mode' instead of 'maximum Performance '.

    (f) what is your point of view about Oracle integrated security? I hear too much on Oracle failsafe, because people generally go to a combination of CARS & dataguard for HA? We have a few additional storage that can be shared between the two servers, but I feel with literally no DG network latency can provide us HA.

    Concerning

    Learner

    (a) since both of our main & secondary is going to be in the same data center with good connectivity. Can I assume that although Data guard is more DR solution, in our case it would be HA solution since we have no network latency.

    Well it will not provide the level of HA that is RAC. RAC is a Transparent Application failover. With a physical standby, you need to apply some delay for a failover operation. You can implement the observer that can automate the failover and reduce the time.

    (b) is it safe to assume that where primary fails, then the day before can automatically take the role of primary education without any manual intervention, possibly using Dataguard broker?

    This isn't really the DG broker, but rather the observer you will need to implement. The DG broker automate failover. It will be the observer who "sees" (where its name) that the principal is down and initiate the failover process. To do this, the observer will use the DG broker, so it will be necessary.

    (c) so I understand that where primary breaks down, the existing connections transfer automatically from primary to standby db (most recent primary), but how my web based java application will know that more recent connections must be sent to the standby db Server (more recent primary)? I guess net Oracle has a provision to handle this? Who can be automated?

    You'll want to read on the QuickStart failover. http://www.Oracle.com/technetwork/articles/smiley-fsfo-084973.html

    (d) given that I have only 2 physical servers, can I deploy broker Dataguard on a normal PC (since it is a thin client) assuming the PC is kept in the data center and is online 24/7?

    The DG broker is required to run on the database server. The DG broker will run on the primary and standby. I think that what you're asking really anything is if the observer can run on a PC. Yes it can. However, it is probably not a good idea. A PC will not have the internal hardware redundancy, a server can have. If the PC can fail more often than to a server. And if the gods are bad, it will fail when you most need.

    (e) I was reading about the modes of Protection, account required to our current scenario & infrastructure, I choose 'Maximum availability Mode' instead of 'maximum Performance '.

    Your choice should depend on the amount of data loss is acceptable.

    (f) what is your point of view about Oracle integrated security? I hear too much on Oracle failsafe, because people generally go to a combination of CARS & dataguard for HA? We have a few additional storage that can be shared between the two servers, but I feel with literally no DG network latency can provide us HA.

    Oracle integrated security only works on Windows with a MS Failover Cluster. Real DBAs do not have Oracle on MSFC.

    See you soon,.
    Brian

  • Question about compression in essbase ASO

    I have a few questions about to define a dimension of compression in Essbase ASO apps:-

    1. is it a good idea to have the size of compressor in app Essbase ASO.

    2. I read somewhere that said it would not be good idea to have the compression period dimension where months YTD neighbourhoods and quarters of the year. So should we put compression on any other dimension dynamic calc and roll ups and have less none of level 0 members stored.

    3. I have observed that when we level 0 export from an ASO application with compressed size vs ASO application with no compressed dimension, there is a difference in size of data export file. I'm not able to understand why it is so. I understand the difference between the size of data (.dat file) between Tablet app vs app uncompressed file, but do not understand the difference when the data is exported to a .txt file.

    Thank you

    (1) compression dimension is not mandatory, but it contributes to the performance. The compression dimension is a dynamic dimension. We need the column headers in a data load file. Ideal compression is achieved if the number of leaf-level members are divisible by 16.

    (2) ASO tuning is an art as much as a science.  The best choice depends on the distribution of data in the database.  and it's different in each database.  Read all the information and then test the various options.  Try it with time as the compression and then try with the next best dynamic dimension defined as dimension of compression.  I've linked a doc tuning which is version 7, but has a very detailed discussion of the dimensions of compression.

    http://www.Oracle.com/technetwork/middleware/bi-Foundation/4822-tuning-Essbase-ASO-WP-133014.PDF

    (3) the format of the header (layout) of the export may be different when you use compression vs when you are not using compression.  It will certainly be different if you use another dimension for compression.  I expect the size of the file to edit when the compression setting is changed.

  • Questions about LogMiner.

    Greetings. We use 11G and have installed OEM, but not DB Diagnostic Pack. I have a few questions about this utility:

    (1) can be used if the Pack diagnosis DB is not installed? I ask because I know that some of these utilities are not available if it is not.

    (2) I know that I need to enable logging extra to use it. Is there any show / General cool space that are associated with?

    (3) are there any air show with the help of LogMiner itself? In particular, I could see what happens if analyzes the current journal.

    (4) what the tool commonly used to determine what query performance caused problems for awhile?

    Thank you!

    1 Yes. It is not part of a pack.
    2 of course additional recording will result in repeat. The impact on performance is usually not noticeable.

    3 the result of mining is placed in the shared pool and queries on v$ logmnr_contents ask shared pool this may cause reduced performance.

    4 n ° do not forget that you are again mining. This means DML. Selects won't be in your recovery.

    -------------

    Sybrand Bakker

    Senior Oracle DBA

  • Questions about the parameters of database using a fast recovery area and the writing of two copies of archived redo logs.

    My databases are 11.2.0.3.7 Enterprise Edition. My OS is AIX 7.1.

    I am to convert databases to use individual zones of rapid recovery and have two questions about what values to assign to database settings related to archived redo logs. This example refers to a database.

    I read that if I specify

    Log_archive_dest_1 =' LOCATION = USE_DB_RECOVERY_FILE_DEST'

    the names of newspapers archived redo written in the default quick recovery area is '% t_%S_%r.dbf '.

    In the past my archived redo logs have been appointed based on the parameter

    log_archive_format='GPAIDT_archive_log_%t_%s_%r.arc'

    I think log_archive_format will be ignored for logs archived redo written in the fast recovery area.

    I am planning to write a second copy of the archived redo logs based on the parameter

    ALTER system set log_archive_dest_2 = ' LOCATION = / t07/admin/GPAIDT/arch.

    If I do this, the copy of logs placed in /t07 will be called '% t_%S_%r.dbf' or 'GPAIDT_archive_log_%t_%s_%r.arc '?

    Before my use of a fast recovery area, I used the OEM 12 c Console to specify settings of backup of database that has been deleted and archived redo logs after 1 backup. Oracle manuals say rather specify a deletion of "none" policy and allow Oracle delete newspapers in the area of fast recovery if necessary. Since I got to keep a second copy of these log files in /t07 should I keep the policy that says to delete logs after 1 backup? If I don't do that, how will they removed from /t07?

    Thank you

    Bill

    If I do this, the copy of logs placed in /t07 will be called '% t_%S_%r.dbf' or 'GPAIDT_archive_log_%t_%s_%r.arc '?

    They will be "GPAIDT_archive_log_%t_%s_%r.arc". LOG_ARCHIVE_FORMAT is only ignored for directories under OMF.

    Since I got to keep a second copy of these log files in /t07 should I keep the policy that says to delete logs after 1 backup? If I don't do that, how will they removed from /t07?

    You can hold the deletion policy as it is. Oracle documentation, defining the STRATEGY of the ARCHIVELOG DELETION: "the deletion of archived newspaper policy applies to logs archive destinations, including the area of fast recovery."

  • Simple question about Append hint

    ORACLE-BASE - title

    The link above, I have just a basic question about add suspicion...

    How the APPEND Hint affects the performance

    The APPEND tip tells the optimizer to perform an access direct-path insert, which improves the performance of INSERT .. SELECT operations for several reasons:

    • Data are added at the end of the table, instead try to use the free space in the table.
    • Data is written directly to the data files, passing the buffer cache.
    • Referential integrity constraints are ignored.

    I wanted to just understand to what extent is the third correct point

    -----------------

    CREATE TABLE emp
    (
    emp_id a PRIMARY KEY/NUMBER
    emp_name VARCHAR2 (100),
    dept_id NUMBER
    );

    CREATE TABLE dept
    (
    dept_id NUMBER PRIMARY KEY,
    dept_name VARCHAR2 (100)
    );

    ALTER TABLE ADD FOREIGN KEY (Dept_id) emp made REFERENCE to Department (Dept_id);


    INSERT / * + append * /.
    IN emp
    Select 1, 'King', 100 from dual;

    COMMIT;

    The insert will definitely give an error

    ORA-02291: integrity constraint (SCOTT. SYS_C0013725324) violated - parent not found key

    Am I missing something here?

    See you soon,.

    Manik.

    sqlldr can and does ignore referential integrity / triggers and same uniqueness in a load path direct, insert / * + append * / doesn't - you do not direct path when they (constraints) exist.


    parallel is always a direct route, if you go in parallel, you add.

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:no:P11_QUESTION_ID:1211797200346279484

  • Question about ticks in time

    I have a question about the number of ticks.

    CREATE function abc (netTicks in number)

    RETURNS THE TIMESTAMP

    as

    DATE date1: = '' 2010-11-01;

    v_ticks_for_2010_11_01 NUMBER (19.0): = 634241664000000000; -I did not understand how this number came

    v_ticks_in_a_second NUMBER (19.0): = 10000000; -THERE ARE 10 MILLION OF TICKS IN ONE SECOND

    Start

    utils. DateAdd ('SECOND', ((netTicks-v_ticks_for_2010_11_01) / v_ticks_in_a_second), date1); - what do what is this function?

    end

    /

    Thank you

    Hello

    NewLearner wrote:

    Hi, I have a data type of bigint type in SQL server. During the migration I changed it to number (19.0) in oracle. But how to have a variable equal to bigint in oracle that is coming as an input parameter. I can not give number (19.0) for the input parameter. His gift of syntax error. How to make this support in oracle?

    In the function declaration, you give just the type of data (e.g., NUMBER).  Sizes, as NUMBER (19, 0) , are given to variables that pass to the function.  For example:

    DECLARE

    x_ticks NUMBER (19, 0): =...;

    x_ts TIMESTAMP

    BEGIN

    x_tx: = abc (x_ticks);

    ...

    When writing to abc, suffice to say that it will be passed a NUMBER.  When you call with a certain NUMBER (19, 0), then it will use this NUMEBR (19, 0) value.

    Also in the Sub function return to_timestamp (' 2014-01-01') + interval '10' sec; instead of having fixed the value of 10 for the interval. I want to spend a dynamic value. example: something like v_interval: = (a - b) / c; return to_timestamp ('2010-11-01') + v_interval second interval;  Help, please

    TO_TIMESTAMP call with 1 single argument is just begging for trouble.  Always use a 2nd argument, for example

    TO_TIMESTAMP ('2014-01-01', "YYYY-MM-DD")

    Rather than use a literal INTERVAL here, you could use a variable INTERVAL, use NUMTODSINTERVAL to convert a variable NUMBER of INTERVAL.

Maybe you are looking for