Police name string

Dear guys,

a quick question

I have a string fontname BBMiliTall e.g. I get a variable

now I want to put this under the name of the application font

I don't care

any help / links / messages / suggestion is appreciated.

Rgds

Nadir Firfire

http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/UI/FontFamily.html#forName (java.lang.String)

Tags: BlackBerry Developers

Similar Questions

  • Get the bind variables name string SQL or the cursor

    Hello

    Is there way to get of the bind variables name string SQL or the cursor?

    Example of
    DECLARE
      l_sql VARCHAR2(2000);
      desctab DBMS_SQL.DESC_TAB;
      curid   PLS_INTEGER;
    BEGIN
    
      l_sql := 'SELECT * FROM emp WHERE mgr = :X and deptno = :Y';
    
      curid := dbms_sql.open_cursor;
      dbms_sql.parse(curid, l_sql, dbms_sql.NATIVE);
      ....
    END;
    What I mean with the SQL string:
    I love to get using some functions from above code variable l_sql all the bind variable.
    In this case the function should return array where is for example: X and: Y

    Back to bind the cursor variable names, I mean same but rather string I pass number of cursor.

    Y at - it sucks ready function or some may share a code customized for this purpose?

    Thanks

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0Regards,

    Published by: jarola December 19, 2011 02:44

    I found there are wwv_flow_utilities.get_binds of the function not documented in APEX packages that do what I want.
    Usage example
    set serveroutput on
    DECLARE
      binds DBMS_SQL.varchar2_table;
    BEGIN
      binds := wwv_flow_utilities.get_binds('select :P1_TEST from dual');
      FOR i IN 1 .. binds.count
      LOOP
        dbms_output.put_line(binds(i));
      END LOOP;
    END;
    /
    
    anonymous block completed
    :P1_TEST
    But I would not use these functions without papers as those who can change or there is no future versions APEX.
    Is there a documented function or the custom function that do the same thing as wwv_flow_utilities.get_binds?

    Some old basic example code of my friends. Also the media getting the bind variable of PL/SQL code blocks anon.

    SQL> create or replace function GetBindVariables( statement varchar2 ) return TStrings is
      2          --// bind variables names are terminated by one the following special chars
      3          SPECIAL_CHAR    constant TStrings := TStrings(' ',')','+','-','>','<','*',',','=',';',CHR(10),CHR(13));
      4
      5          --// max size of a bind var name
      6          MAX_VARSIZE     constant integer := 100;
      7
      8          pos     integer;
      9          pos1    integer;
     10          occur   integer;
     11          varName varchar2(100);
     12          varList TStrings;
     13  begin
     14          varList := new TStrings();
     15
     16          --// looking for the 1st occurance of a bind variable
     17          occur := 1;
     18
     19          loop
     20                  pos := InStr( statement, ':', 1, occur );
     21                  exit when pos = 0;
     22
     23                  varName := SubStr( statement, pos, 100 );
     24
     25                  --// find the terminating char trailing the
     26                  --// bind variable name
     27                  pos1 := Length( varName );
     28                  for i in 1..SPECIAL_CHAR.Count
     29                  loop
     30                          pos := InStr( varName, SPECIAL_CHAR(i) ) - 1;
     31                          if (pos > 0) and (pos < pos1) then
     32                                  pos1 := pos;
     33                          end if;
     34                  end loop;
     35
     36                  --// extract the actual bind var name (without
     37                  --// colon char prefix)
     38                  varName := SubStr( varName, 2, pos1-1 );
     39
     40                  --// maintain a unique list of var names
     41                  if not varName member of varList then
     42                          varList.Extend(1);
     43                          varList( varList.Count ) := varName;
     44                  end if;
     45
     46                  --// look for the next occurance
     47                  occur := occur + 1;
     48          end loop;
     49
     50          return( varList );
     51  end;
     52  /
    
    Function created.
    
    SQL>
    SQL> select
      2          column_value as BIND_VAR
      3  from TABLE(
      4          GetBindVariables('select * from foo where col=:BIND1 and day = to_date(:B2,''yyyy/mm/dd'')')
      5  );
    
    BIND_VAR
    ------------------------------
    BIND1
    B2
    
    SQL> 
    

    PS. just realize this code is case-sensitive, while variable bind is not. Should throw a upper() or lower() by adding the name of the var to the list - never really a problem for me because I'm pretty tense when it use cases correctly in the code. ;-)

    Published by: Billy Verreynne, December 19, 2011 06:19

  • VISA resource name strings

    Hello

    I have a control "VISA Resource Name" on my front, according to the guidelines of the attached screenshot, which should automatically fill with the names of all the VISA resources that the PC can see.

    Is it possible to get a picture of these names as strings (via a property node, or other) programmatically?

    Thank you very much

    Dan

    In the schema click Instrument of e/s > VISA > VISA advanced > VISA find resources. This VI returns an array of strings. You can type cast the string in a resource VISA type.

  • Need help pulling a name string

    Hello I'm on Oracle 11 GR 1 material and have a strings of data like these:

    SMITH, KAY C. RN, FNP
    WESTON, DEBRA, L
    ASH, CHRISTOPHER, J., PA - C
    EYEBROWS, CATHERINE J MSN NOCD
    ASH, MICHELLE
    NASH, BOB MC T MD
    BROWN-JONES, LARRY RN

    I need to enter these:
    LAST_NAME
    FIRST NAME
    MI
    CODE (the first one)

    So, if we where to watch again the data after it is pulled apart, I would like to see this:
     
    LAST_NAME     FIRST_NAME     MI    CODE 
    SMITH         KAY            C     RN 
    WESTTON       DEBRA          L       
    ASH           CHRISTOPHER    J     PA-C 
    BROW          CATHERINE      J     MSN 
    ASH           MICHELLE 
    That's what I have (this code will be executed on an external Table with 1.5mil lines):
     
    select 
        substr('SMITH, KAY C. RN, FNP',1,instr('SMITH, KAY C. RN, FNP',',')-1) as LAST_NAME, 
        regexp_substr(SMITH, KAY C. RN, FNP', '[^, ]+ ') as FIRST_NAME 
    from dual; 
    I don't know how to get the rest.

    Thanks for any help

    Published by: Sky13 on September 23, 2011 12:04
    I added a few samples more

    Hello

    Look at the data and try to find some patterns. You will not be able to get everything right, but you may be able to make the most of them.
    I would look for things:
    There always at least 1 comma in the chain? Are you sure that what comes before the (first) comma is always a name?
    When there are 2 commas, codes never come before the 2nd comma?
    Codes always come after the names?
    What parts are sometimes missing? How many times they lack?
    Never just 1 character codes?
    Some codes occur very frequently?
    Is this practice to create a table of the most common codes, or even all the codes?

    It will be much easier in PL/SQL.
    You can write a procedure which takes 1 IN argument (the plain text) and 5 on arguemnts:
    (1) first name
    (2) first name
    (3) other initial
    (4) code
    (5) a number indicating what is the probability that the results are correct. For example, 100 may indicate a very simple string, such as "Dyer, Mary. You can print the with the lowest number for some person to review manually.

    Good luck!

  • Consolidation of the connection by Instance name strings

    With the help of SQLD 4.0.2 / RDBMS 11 G r2

    I have a lot of connections defined through multiple oracle instances.  I would like to consolidate all connections per instance (or somethings similar) name for MISTLETOE.  I know that I can color each connection (for all connections in instance1, blue green for all connections to the instance 2, etc.), but I would like to be able to use the sign more to reduce / enlarge each instance together, eliminating the need to view all of the defined connections available on the screen.

    I did a little research in the forum but no luck.  Any ideas?

    Thanks in advance.

    You can create the connection folder, "add to the file.

    There is no automatic grouping of the instance at this time.

  • How to get the static attribute by using its name as a string

    I have an app with about 100 boxes of single drop-down list (this is a requirement of the Government, I'm not that bad a designer) and I would like to define the choices in a single file separated like this:

    package components {}

    Import mx.collections.ArrayCollection;

    public class {choice}

    [Bindable] public static var A0310A: collection ArrayCollection = new ArrayCollection ([] collection
    {value: '01', label: 'Admission'},
    {value: "02", label: "Quarterly"},
    .. .snip...
    ([{value: "99", label: "NOT the OBRA required"}]) ;

    public static void getChoices(name:String):ArrayCollection {}
    var temp: ArrayCollection = collection?
    Return temp;
    }

    }//----------------end of class--------------------------------
    }//======================== end of package==============================

    I want to use it like this

    < my: ComboBox id = "mdscombo" tag = "A0310A" / >

    Where the definition of my: ComboBox includes the code like this

    var zz:ArrayCollection = Choices.getChoices (name);

    but I can not find any function that will allow me to do.  I don't want really clutter up the code by creating a name-> object mapping table.

    I had also considered using the XML data type, but I have the same question, unless I had all the choices under a single root (possible), but this could be a nightmare when debugging in typo XML file.

    Any suggestions?

    To answer your question, you can access static variables with a chain in this way:

    Choice ["A0310A"]

    However, you probably want to re-evaluate your design because this isn't a very desirable approach.

  • Instruments GPIB remote access through the GPIBConf device names

    Hello

    I am trying to run the Labwindows 2009 SP1 code on a PC based office while trying to exploit the GPIB instruments

    on another part of the network.

    Normally, this isn't problem with VISA server on the target computer and the use of names of Alias VISA within the

    Office PC code.

    But this code was inherited and uses a different method which has been the best over time.

    The code uses device name strings that have been defined using the GPIB utility: GpibConfig.exe,.

    on the target computer. So when a device is first initialized, the name defined in the GPIB utility is used

    by the code and the associate instrument access are reached. It works fine when the code and

    the instruments are located on the same PC.

    My question: is there some way I can use VISA access server remote GPIB instruments help

    defined names on the computer target with the GpibConfig.exe utility?

    Thank you

    Gary.

    The low-level GPIB functions have no knowledge functions VISA or aliases. This must be a very old application since the VISA has been around for 10 years. Have you always the source code so you can change your GPIB for VISA?

  • The formatting String and Integer output in the field of rich text in Blackberry development

    Hello

    well to help try to string format and Intreger (of a method called getScore()). but not output as required.

    example code:

    VFM. Add (new RichTextField ("% - s 15% 15 %n d", name, getScore())); > not Workin not at all

    VFM. Add (new RichTextField ("% - s 15% 15 %n d" + name + getScore())); > name and Score of return but not formatted

    My goal is to have

    NAME                                                                            SCORE

    sam                                                                                20

    BB                                                                                   5

    Hello

    Thanks for your reply, I have dealt with the issue of a reference I got online, solved my probled.sample below

    private String getModifiedName (String name) {}
    String testString = "this is a very large string";

    While (getFont () .getAdvance (testString) > getFont () .getAdvance (name)) {}
    name = name + "";
    }
    return the name.
    }

  • Call the stored procedure, and bind parameters by name

    Hello

    I use the Oracle ODBC 12 c driver to pass values from one Interface to our database Oracle 11.2. The Interface software collects data from modbus protocoll and calls a stored procedure. Right now my syntax to call the stored procedure looks like this:

    CALL procedure-name ('STRING', 'Timestamp as String', numValue1);

    It works very well. Now, I have to add a default setting to my procedure. To stay flexible to make other changes, I want to call the procedure and bind the parameters by name. Release 10.2.0.1.0 ISC ODBC Notes:

    Added support for the named parameter, binding the parameters by name. ODBC Oracle driver now allows the application to specify the parameters of a stored procedure by name, in the procedure call. Named parameters are to be used in calls to stored procedures and should not be used in other SQL statements.

    So, it shouldn't be a problem to use named notation, but how do I do this in ODBC? I tried like this, but oracle returns an ora-00936 error of missing expression:

    call procedure-name (paramName1 = > 'STRING',= paramName2 > 'Timestamp as String',paramName3 = > numValue1).


    Thank you for your help.

    Finally, I was able to find the error. The syntax of the statement was very good. The problem was caused by another declaration that I edited before and the error has not attracted Attention immediately.

    Thanks for reading and looking for an answer.

  • Connectivity of user using net service name

    Hi all;


    The service_name database level value is different and of course vary in the tnsnames.ora file.

    So how oracle allows user connectivity using tns alias name?


    SQL > conn scott/tiger@CRMS

    Connected.


    SQL > show parameter service_name.


    VALUE OF TYPE NAME

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

    service name string crms.server1.com


    $ vi tansnames.ora


    tnsnames.ora # Network Configuration file: /u02/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    CRMS =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.130)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = GCD)

    )

    )

    DB version is: 11.2.0.1 on Linux


    Thank you

    I never statement "changes to the system registry.

    This is not necessary: when you use the default settings for the listener (as in your case), the instance automatically registers with the listener.

    http://docs.Oracle.com/CD/E11882_01/network.112/e41945/listenercfg.htm#NETAG298

  • The Oracle service name - with or without net suffix?

    In sqlplus I tape the show parameter name and I get the following output

    SQL > show the name of the parameter;

    VALUE OF TYPE NAME

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

    db_file_name_convert chain

    db_name string orcl

    db_unique_name string orcl

    global_names boolean FALSE

    instance_name string orcl

    lock_name_space string

    log_file_name_convert chain

    service name string EXP

    SQL >

    However, when I try to connect from a client PC like that

    sqlplus system/password@DBHOST/EXP

    I can not connect - I get the error:

    ORA-12514: TNS:listener is not currently of service requested in connect

    On the host, I type lsnrctl status and I get this for the endpoints listening:

    Summary of endpoints listening...

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=OracleExp) (PORT = 1521)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    Service 'EXP.168.203.30' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orcl.168.203.30' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orclXDB.168.203.30' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    I can connect from a client computer, as long as I'm using the suffixe.168.203.30 - in other words

    sqlplus system/password@oracleexp/exp.168.203.30

    works very well. However, I won't use the suffix!

    Why the listener is adding a suffix in the name of my service and how do I stop this?

    Thank you

    A.

    Hello

    "You have a domain name is ' 168.203.30 ', which is added to name service.

    You can see with see the db_domain parameter

    Kind regards

    Franck.

  • Code to create and name shapes dynamically

    I am trying to create rectangles on the Web that have unique names. Finally, I would like to add a listener for these rectangles that allow to drag the mouse.

    So far, I've got:

    var box: MovieClip = new MovieClip();

    Box.Name = "rect1";

    box.graphics.drawRect (100,100,100,100);

    this.addChild (box);

    var targetBox:MovieClip = this.getChildByName ("rect1") as MovieClip;

    This [targetBox] (MouseEvent.MOUSE_DOWN, onStart) .addEventListener;

    This [targetBox] (MouseEvent.MOUSE_UP, onStop) .addEventListener;

    function onStart (e)

    {

    e.currentTarget.startDrag ();

    }

    onStop (e) function

    {

    e.currentTarget.stopDrag ();

    }

    But it does not work. I get an error: TypeError: Error #1010: a term is undefined and has no properties.

    Call createRectF(), passing the name and initial x, y of the used values:

    function createRectF(nameS:String,x_val:int,y_val:int):void {}

    var box: MovieClip = new MovieClip();

    Box.Name = nameS;

    addChild (box);

    {with (Box.Graphics)}

    lineStyle (what you want here);

    drawRect (0,0,100,100);

    }

    Box.x = x_val;

    Box.y = y_val;

    box.addEventListener (MouseEvent.MOUSE_DOWN, startdragF);

    }

    function startdragF(e:MouseEvent):void {}

    e.currentTarget.startDrag (false);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopdragF);

    }

    function stopdragF(e:MouseEvent):void {}

    stopDrag();

    stage.removeEventListener (MouseEvent.MOUSE_UP, stopdragF);

    }

  • The value of VM = DNS name

    Morning he

    I have been using the script with great success but who want to see if it could be refined below. What I intend to do is to say rename all VMs with different names BUT exclude any virtual machine whose DNS name contains 'local; TMP'

    The reason is that we have many instances where devices of vmware gets deployed where the hostname is localhost and details of vApp is the descriptive part.

    Current script:

    Connect-VIServer # MyvCenterSRV

    # State whether your virtual machine names the FQDN

    $IncludeFQDN = $false

    Get-VM | { $_. {PowerState -eq 'Receiving' } | Foreach {

        If ($IncludeFQDN) { }

    $Name = $_. Guest.Hostname

    } Else {}

    $Name = (([string]$_. (Guest.HostName). Split (".")) [0]

    }

    If ($_. {(Nom -ne $Name)}

    If ($_. Guest.Hostname) {}

                Write "Name VM ' $($_.)" Name) "" is not the same as the $Name hostname ""

      Set-VM $_. Nom -nom $Name - whatif -confirmer:$false

    } Else {}

    Writing "Unable to read hostname $ ($_.). (Name) - no VMTools? »

    }

    }

    }

    Proposed changes:

    Connect-VIServer # MyvCenterSRV

    # State whether your virtual machine names the FQDN

    $IncludeFQDN = $false

    $excludeNAME = localhost, TEMP... (Do not know where to call them that)

    Get-VM | { $_. {PowerState -eq 'Receiving' } | Foreach {

        If ($IncludeFQDN) { }

    $Name = $_. Guest.Hostname

    } Else {}

    $Name = (([string]$_. (Guest.HostName). Split (".")) [0]

    }

    If ($_. {(Nom -ne $Name)}

    If ($_. Guest.Hostname) {}

                Write "Name VM ' $($_.)" Name) "" is not the same as the $Name hostname ""

      Set-VM $_. Nom -nom $Name - whatif -confirmer:$false

    } Else {}

    Writing "Unable to read hostname $ ($_.). (Name) - no VMTools? »

    }

    }

    }

    Hope someone have a suggestion.

    Thank you

    Johan

    Try something like this

    #Connect-VIServer MyvCenterSRV# Specify if your virtual machine names include the FQDN$IncludeFQDN = $false$excludeNAME = "localhost|TEMP"
    
    Get-VM | Where { $_.PowerState -eq "PoweredOn" } | Foreach {  If ($_.Guest.Hostname) {    If ($IncludeFQDN) {      $Name = $_.Guest.Hostname    } Else {      $Name = (([string]$_.Guest.HostName).Split("."))[0]    }    If ($_.Name -ne $Name -and $Name -notmatch $excludeNAME) {      Write "VM name '$($_.Name)' is not the same as the hostname $Name"      Set-VM $_.Name -Name $Name -whatif -confirm:$false    }  }  Else {    Write "Unable to read hostname for $($_.Name) - No VMTools ?"  }}
    

    The script uses an expression (operator of match) RegEx to check if the hostname does not contain 'localhost' or 'TEMP' (the vertical bar in the string is the part of GOLD)

  • A vOrg name recovery

    Is it possible to recover a vOrg vCD by name (string)? From there, I know how to get an OrgVDC, but it would be easier to use, if I could just take in a string and select the objects to vCD in the backend rather than having my end-users try to manually select the Org/OrgVDC.

    Required inputs:

    vcdHost (vCloud:Host)

    Name (String)

    Output:

    orgOut (vCloud:Organization)

    Script:

    // Create a query service object
    var queryService = vcdHost.getQueryService();
    // build parameters with filter
    var expression = new VclExpression(VclQueryOrgField.NAME, name, VclExpressionType.EQUALS);
    var filter = new VclFilter(expression);
    var params = new VclQueryParams();
    params.setFilter(filter);
    
    // run query and store results in resultSet
    var resultSet = queryService.queryRecords(VclQueryRecordType.ORGANIZATION, params);
    // Create an array to hold matching vApps
    var orgs = new Array();
    // Loop through the resultSet and create vApp objects by reference
    while (resultSet != null)  {
        var records = resultSet.getRecords(new VclQueryResultOrgRecord());
        System.log(records.length + " records found");
        for each (var record in records) {
            var objRef = new VclReference();
            objRef.href = record.href;
            objRef.name = record.name;
            objRef.type = record.type;
            System.log("Name: "+record.name+" Type: "+record.type+" HREF: "+record.href);
            orgs.push(vcdHost.getEntityByReference(VclFinderType.ORGANIZATION, objRef));
        }
        resultSet = resultSet.getNextPage();
    }
    // output Org if single result matched name, otherwise log warning/error
    switch (orgs.length){
        case 0:
            System.warn("No Orgs found matching name: "+name);
            Server.warn(name,"No Orgs found matching name: "+name);
            break;
        case 1:
            var orgOut = orgs[0];
            break;
        default:
            System.error("more than one Org matched the name: "+name);
            Server.error(name,"More than one Org matched the name: "+name);
    }
    
  • Unable to connect local database using net service name

    Hello all;


    FYI: This question has been posted in high availability. Now, it has been deleted from there.


    I'm trying to connect my local database using authentication remote.

    but make a mistake. Client & server are on the same server.


    SQL > conn u1/u1@primdb

    ERROR: ORA-12545: Connect failed because target host or object does not exist


    SQL > conn / as sysdba

    Connected.


    SQL > show parameter db_name;

    VALUE OF TYPE NAME

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

    db_name chain primary


    SQL > show parameter service_name.

    VALUE OF TYPE NAME

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

    service name string mydb


    SQL > show parameter db_domain;

    VALUE OF TYPE NAME

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

    db_domain string primary.com


    SQL > show parameter global_name;

    VALUE OF TYPE NAME

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

    global_names boolean FALSE


    SQL > select * from global_name;

    GLOBAL_NAME

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

    PRIMARY

    [oracle@localhost admin] $ lsnrctl start

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:32:08

    Copyright (c) 1991, 2005, Oracle.  All rights reserved.

    From /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: Please wait...

    TNSLSNR for Linux: Version 10.2.0.1.0 - Production

    System settings file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

    Error listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=oel5.linuxserver) (PORT = 1521)))

    TNS-12545: Connect failed because target host or object does not exist

    AMT-12560: TNS:protocol adapter error

    TNS-00515: Connect failed because target host or object does not exist

    Listening port could start. See the above error messages...


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


    My listener.ora file content:

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = primary)

    (ORACLE_HOME = u01/app/oracle/product/10.2.0/db_1)

    (GLOBAL_DBNAME = mydb.primary.com)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oel5.linuxserver) (PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))

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

    My tnsnames.ora content

    primdb =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST= oel5.linuxserver) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = mydb)

    )

    )

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

    $ tnsping primdb


    AMT Ping utility for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:40:55

    Copyright (c) 1997, 2005, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = oel5.linuxserver)(PORT=1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)))

    TNS-12545: Connect failed because target host or object does not exist

    Thanks in advance...


    SERVICE_NAME =? in tnsnames.ora file should MATCH what is reported by the listener EXACTLY (like one from below)

    > Service 'mydb.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary_XPT.primary.com' has 1 instance (s).

Maybe you are looking for