How to check the type of connected database?

Hello

Our Application has some complications and depending on the type of database, he chooses necessary action.

Need us:

Is there any common query that can tell if the database is

version 11g OR 12 c NO CBD GOLD CBD GOLD PDB 12 c 12 c.

Our Application needs to do some prework (prechecks) before creating the schema in the data above.

and this prework is different for each of them.

The problem right now I m facing if I run a query "select name, CBD of v$ database" to check if the database is CBD or the CDB, NO.

Same query executed on 11g gives an error, as the CBD is not defined in 11g.

So, what is the best way to do it.

Thank you.

I imagine that if the application is an installer, it might want to be sure, there are enough Cancel to install a game potentially important objects.  I can't understand the question though.

Tags: Database

Similar Questions

  • How to check the type of memory installed (ECC or not)?

    all!

    I have some servers Dell PowerEdge R420 and I want to upgrade memory, install more...

    How to check the type of memory installed (ECC or not)?

    Dmidecode output here:

    Drive.google.com/.../View

    Hello.

    Unfortunately, we are not able to open the link you have provided. You can display information about your memory on the web iDRAC under hardware and memory interface. You see the type of error correction (ECC or Non ECC) within the information memory page. You can also view the same information on OpenManage Server Administrator and even make use of the memory part number to find out more information.

  • How to check the details of connection and disconnection of the team? I want to see the rate of use of the software.

    How to check the details of connection and disconnection of the team? I want to see the rate of use of the software.

    Hello

    I'm sorry but there is no option for monitoring the connection and disconnection of a user.

    You can see their activation of license through your admin console.

    Kind regards

    Sheena

  • How to check the type of hard disk of the windows operating system?

    on linux, we can find the hdd for example of name setail

    Type a - ide

    SDA - ACHI or sata or sas

    a way to find the type of hard disk in the windows operating system? as linux

    any command or something

    In Windows 7, you can get a lot of details by selecting Start, all programs, accessories, System Tools, system information, components, storage disks. It was very similar to Windows XP, but for all information users tend to use Everest or Belarc Advisor for additional information not available. Everest has been best Bellarc advice but they ceased to offer tan updated free version. However, the 2.20 version is always available from third-party sites.
    http://www.Softpedia.com/get/system/system-info/Everest-Home-Edition.shtml

  • How to get the Type of connection to URL programmatically

    Hi all

    I created a new connection of type "URL" in jdeveloper 11g.
    I need to get the value of the URL of the connection programmatically.
    Someone knows how to do?

    I use jDeveloper 11.1.1.6 with webcenter framework.

    Hello

    have you tried

    Context ctx is ADFContext.getCurrent () .getConnectionsContext ();.
    Object urlConnectionObject = ctx.lookup ("connection name"); Check connections.xml for this

    Frank

  • How to check the type of datamodel in case of response data from application of DataByConstraint in the plugin development web vsphere client

    Hello, I am new in plugin development web vsphere client.

    I need to send multiple DataByConstraintRequest (say A and B data model class) within a class of script simple action. But to handle events of response data, we use

    [ResponseHandler (name = "{com.vmware.data.query.events.DataByConstraintRequest.RESPONSE_ID}")]

    public void onVmListRetrieved (request: DataByConstraintRequest,)

    result: collection ArrayCollection): void {}

    The result is an ArrayCollection of MyVmData of the objects collection

    }

    Here how should I come to know this result variable is either A or class B data model. (including the result can be a collection of empty array)

    In case of DataByModel, we have events in response to the separate data for the data model class, but I couldn't find the same for DataByConstraint.

    You can define a unique ID_Demande for each DataByConstraintRequest and check in the response Manager.  'requestId' is a field of the class of basic DataRequest.

  • How to define the Type of connection using the New-VirtualPortGroup

    Using PowerCLI 4.1, is there way to define the port group (VM or VMKernel) connection type when you create the port group?

    Thank you

    OK, try it like that.

    $VMHostObj = Get-VMHost $ESXHost
    $vsw = get-virtualswitch -name vSwitch0 -VMHost $VMHostObj
    
    New-VMhostNetworkAdapter -VMHost $VMHostObj -VirtualSwitch $vsw -PortGroup "VMotion" -IP 10.110.40.43 -SubnetMask 255.255.255.0 -VMotionEnabled:$true
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to check the CPU usage in the database

    How to check the CPU usage?

    in Linux and database level

    Hello

    under Linux, you can use mpstat command, for example:

    [oracle@vSLLGM132 ~] $ mpstat Pei ALL 2 10
    Linux 2.6.32 - 300.10.1.el5uek (vSLLGM132) 23.11.2014

    14:27:08 CPU user nice sys % iowait % irq % sweet % fly % idle intr/s
    14:27:10 all 1.00 8.50 9.00 0.00 0.00 0.50 0.00 1423,50 81.00
    14:27:10 0 1.00 8.50 9.00 0.00 0.00 0.50 0.00 81.00 26.50

    CPU utilization tracking can be done with the command SAR u.
    .

    At the database level: data dictionary views: v$ sysstat, v$ iostat, V$ SYSMETRIC_HISTORY.

    Read the MOS Notes:

    Diagnose hardware base caused by Performance issues (Doc ID 148176.1)

    Troubleshooting: The use of high processor (Doc ID 164768.1)

    Concerning

    Borys

  • How to check the locks in the database

    Hello

    oracleDatabase version: 11 GR 2
    OS: Solaris

    How to check the locks on database objects .it can be any lock?
    None Select sql query to check the levlel of objects of database locks? what basis locks occur?

    Please explain on the locks or share notes MOS?

    Rgds,
    Sam.

    Check below sql.

    Select s1.username. '@' || S1.machine
    || ' (SID =' | s1.sid | block him ') '
    || S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status
    v $ lock l1, v$ session s1, v$ lock l2, s2 of v$ session
    where s1.sid = l1.sid and s2.sid = l2.sid
    and l1. BLOCK = 1 and l2.request > 0
    and l1.id1 = l2.id1
    and l2.id2 = l2.id2;

    http://psoug.org/snippet/locks-view-locked-Objects_866.htm
    http://www.DBA-Oracle.com/t_locked_rows_user_locks.htm

  • How to check the event.target type in the "if" statement

    Hi, I have "roll-over" event listener and I wish that only works with music videos (without textfields etc.). I would write something like this:

    if(Event.Target == MovieClip) {do something}

    else {do something}

    This does not work properly.

    How to check the event.target type in the "if"?

    Thanks for any help.

    :

    If (getQualifiedClassName (Event.Target) == 'flash. display::MovieClip') {do something}

    else {do something}

    .

  • How to check the amount/number of issued on the database DDL operations

    Hello

    Can someone please clear some doubts.

    1. How can we check the number of DDL operations on the database

    2. how we check the amount of growth in the size of the database.

    3. How can we check the growth of a single table.

    Concerning
    Amith

    Select startup_time "Startup."
    MySQL 'Transactions. "
    /Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) "Avg per day."
    /Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) / 24 ' Avg / hour. "
    /Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) / 1440 "Avg / min.
    v $ sysstat, instance $v
    WHERE name in (a "user is committed," restores user)
    Startup_time group;

  • How to check the status of the import in Windows?

    Hello

    Import runs in my box of Wndows. The log file is not updated since long. How to check the status of the import job? FYI its oracle 10g.

    And I checked the database which.

    FYI
    ===
    Select * from DBA_DATAPUMP_SESSIONS;

    no selected line.

    Select * from DBA_JOBS_RUNNING;

    no selected line


    Select the username, machine, module, sid, State, event, seq #, session seconds_in_wait $ v where type <>'IMPORT' and username = "AUTOTIME";

    no selected line



    Please let me know.

    You actually look at the session of $ v and check the status of the session that is created by the import job.

    Sometimes the underlying tablespace is full, so import session just hangs, it must increase the size of the storage space.

    You should also look at alert.log file and see if there is any error message like "cannot extend table space '.

  • How to get the IP address, Port database don't &amp; Oracle SID details

    Hello
    How to know the IP address, Port database don't & Oracle SID details

    Hello

    The IP address is for not for the database server.

    Port no, may be different.

    check what sid, listening to the port

    lsnrctl > status

    or

    Open the tnsname.ora or listener.ora to find what hostname(ip address), what is the port number and what is the SID that you connect

    Hope that answers your question.

    Kind regards
    Rakesh Jayappa

  • HP Photosmart 7525: How to check the version of the firmware of the HP PhotoSmart 7525 is up-to-date?

    How to check the version of the firmware of the HP Photosmart 7525 is up-to-date? And where can I go to download the latest firmware?

    Hello

    Follow these steps to check the update of firmware for your printer:

    http://support.HP.com/us-en/product/HP-Photosmart-7520-e-all-in-one-printer-series/5199461/model/5286642/document/c03312867/

    Note: the printer must be connected to your network to check the updates, if it is connected with a USB key follow the steps in the tehse to connect the * beep * to your wireless network:

    1. In the wireless menu, tap Settings.

  • Determine the Type of connection

    Hello

    Because each type of connection (MDS/BES, TCP, BIS, WiFi) requires a suffix different http to establish a connection, is it possible to programmaticaly determine what type of connection is currently active on the BlackBerry to a user?

    I checked this site http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    and although the example seems pretty complete, I wonder if there is something in the API that can be used to quickly determine the type of connection of the user.

    Thank you!

    As far as I know, up to the 5.0 OS, the methods used in the Network Diagnostics tool are the best API available to do what you want.

    I suggest that you ignore the Thread amardeepjaiman has referenced, despite the title, there is no discussion on the change of the type of connection depends on the force.

Maybe you are looking for

  • printer all-in-one psc2510 does not power on. Hourglass is displayed.

    Top of this printer (psc2510) has been partially open to allow the cleaning of the scanner glass. Since then printer will not complete the power on sequence. Thanks for your time to help resolve this issue.

  • Non-active WiFi on Satellite L40 - 14N

    Hello I recently bought a new Satellite L40 - 14N with preinstalled Vista Home Premium. For some reason any WLAN is not working. It seems that it is well off and the big question would be: How do I activate it? Try FN + F8 doesn't do anything - which

  • Generation of impulses associated with Motion Control

    Hello I'm currently controlling a stage prerequisite microscope with Labview, through a serial port.  LabVIEW communicates via the active X functionality to the control of the stage box. I would like to be able to integrate a feature of external impu

  • I accidentally did something to the sympatics pointing device to where I can't TYPE to CLICK

    Original title: pointing device sympatics will not let me tap to click I accidentally did something to the sympatics pointing device to where I can't TYPE FOR CLICK and I'm not that computer savy to seem to be able to find a way to get it back to the

  • Headaches disk Swap backup/restore PSE7

    I'm out of ideas on that, maybe one of the experts here can help. It comes to PSE7 and Windows 7 on a PC.Using PSE7 I did a full backup of my pictures of my C:\Users\Greg\Pictures directory on a different disk (drive. F:\) on the same computer. No pr