Using SQL to update Translation Patterns in CUCM 9.1

Hello,
I have approximately 400 translation patterns that I have exported from one CUCM 9.1 system that I want to import into another CUCM 9.1 system as this will save me lots of work.
I have done this and the import was successful but when I look at the Translation Patterns in CUCM admin the value for
Discard Digits under Called Party Transformations is shown as < None > where it should be PreDot.
Oddly when I export the Translation Patterns from the CUCM cluster to which I have just imported them the value shown in the csv file is PreDot
I was wondering whether it would be possible to change the value for Discard Digits using SQL. Despite reading Bill Bell's helpful blog series I am struggling to work out how to do this.
The basic operation I want to do is described below:
Update Discard Digits to PreDot for all Translation Patterns that start with 90.
Can anyone help me with this?

Thank you for the answer, in my case I only need to distribute LSCs to the phones for 802.1x authentication. As far as I understand, it is possible to just update the CTL file with Cisco CTL Client utility.

Similar Messages

  • Table Update using SQL Loader

    Hi All,
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    I am working on Loading a file using SQL Loader.
    I have loaded all the records (20Million) in to a table which has 30 columns.
    Issue : Now i got a new layout for same Data file, Which already has 5 new columns at the end which we didn't loaded.
    I have created the CTL file with New columns but can i update only those 5 new columns into the table. Is that Possible?
    Or should i truncate and do it from the scratch....Please suggest me...
    Thanks

    SQL*Loader does not update; It only inserts. You could load the data into a staging table, then use SQL to update, but that would be slower than just starting over. So, you should just reload the whole file, including the new columns, using the REPLACE in the SQL*Loader control file, instead of APPEND. That will overwrite any existing data.

  • Creating multiple translation patterns CUCM 8.5

    Good day all,
    I need to assign an employee a DID number. The problem is that he is in another state and I've only been able to ascertain that our translation pattern is setup for our state and area code. So how would I go about setting up a translation pattern for his area code? Would I need to create another dial peer?
    Example:
    Our translation pattern is 972934XXXX
    I need one that is 770XXXXXXX
    Any help would be appreciated.
    Tariq

    Hi Tariq.
    Is that employee's phone registered on the same cluster?
    Is your provider passing 770XXXXXXX DID to your VG?
    If yes, you can create a translation pattern on CUCM translating the DID with different area code into desired extensions.
    Please let me know
    Regards
    Carlo

  • Translation Pattern - X wildcard not working.

    I am trying to translate any calls from a certain CSS to extension 4900-4999 to a single extension (8114). I tried using 49XX as the
    Translation Pattern, 8114 as the Called Party Transform Mask, and the partiton for this is the first in the CSS list. This is not working...it just calls directly to the dialed extention (4950), but if I change the Translation Pattern to 4950 it works just fine (goes to 8114 like desired). The partition 4950 is located in is halfway down the list in the CSS. Is there a particular reason the X wildcard is not working in this instance?

    Everything is working as expected based on your configuration, CUCM uses best match routing.
    I can already tell your CSS has access to both, 4950 and 49XX, thus,it's all working fine.
    4950 is one match
    49XX 100 matches
    4950 is the best match.
    CSS order only matters when there's 2 or more patterns with the same number of matches. Only THEN, which CSS is on top, will matter.
    You need to remove access to the DNs directly and leave only the TP.
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • How many times is my Translation Pattern being used?

    I am running CUCM 8.5.1.  I have about 50 or so translation patterns.  Is there a report that can tell me how many times each translation pattern is being used daily or weekly?

    Here is the entire setup and my problem.
         Service Provider is sending 9725 and 3131. 
         Voice Gateway is doing a Num-Exp to 2604 and 2403  (respectively)
         Then, the Call Manager is doing a translation on both numbers to Route Point 7824 which then triggers UCCX.
    Two numbers for one purpose.  I would like to remove 9725 / 2604 but I'm not sure how many times it is being used.  Are the calls that are hitting my route point coming from 9725 or 3131?  I can't tell since they both are being translated to the same Route Point.
    Whats the best way of finding out?  Thanks for your time guys!!

  • How can I use SQL to search for a pattern within a field?

    Hello, Frank, Solomon, ect
    I am now faced with this particular scenario, I've got the SQL to search through a field to find text within the field, but I have to know what it is before it can look for it.
    What I have to do is this:
    Search through a field, for a pattern, and I won't know what the data is I am looking for. Can this be done in SQL?
    For instance, Here is my SQL this far, I was helped allot in order to get to this point.
    select table_name,
           column_name,
           :search_string search_string,
           result
      from (select column_name,
                   table_name,
                   'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
              from cols
             where table_name in ('TABLE1', 'TABLE2')),
           xmltable (str columns result varchar2(10) path '.')
    When you execute the above SQL, you have to pass in a value. What I really need is to alter the above SQL, to make it search for a pattern that exist's within the text of the field itself.
    Like for instance, lets say the pattern I am looking for is this" xx-xxxxx-xxxx" and it's somewhere in a field.
    I need to alter this SQL to take this pattern and search through all the schemas and tables to look for this pattern match.
    Can be done?

    When you use something dynamically within a function or procedure, roles do not apply and privileges must be granted directly.  So, you need to grant select on dba_tab_cols directly.  If you want to do pattern matching then you should use regular expressions.  The following example grants the proper privileges and uses regexp_instr to find all values containing the pattern xxx-xxxx-xxxx, where /S is used for any non-space character.  I limited the tables in order to save time and output for the test, but you can eliminate that where clause.
    SYS@orcl> CREATE USER test IDENTIFIED BY test
      2  /
    User created.
    SYS@orcl> ALTER USER test QUOTA UNLIMITED ON USERS
      2  /
    User altered.
    SYS@orcl> GRANT CREATE SESSION, CREATE TABLE TO test
      2  /
    Grant succeeded.
    SYS@orcl> GRANT SELECT ON dba_tab_cols TO test
      2  /
    Grant succeeded.
    SYS@orcl> CONNECT test/test
    Connected.
    TEST@orcl> SET LINESIZE 90
    TEST@orcl> CREATE TABLE table1
      2    (tab1_col1  VARCHAR2(60))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table1 (tab1_col1) VALUES ('xxx-xxxx-xxxx')
      3  INTO table1 (tab1_col1) VALUES ('matching abc-defg-hijk data')
      4  INTO table1 (tab1_col1) VALUES ('other data')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    TEST@orcl> CREATE TABLE table2
      2    (tab2_col2  VARCHAR2(30))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table2 (tab2_col2) VALUES ('this BCD-EFGH-IJKL too')
      3  INTO table2 (tab2_col2) VALUES ('something else')
      4  SELECT * FROM DUAL
      5  /
    2 rows created.
    TEST@orcl> VAR search_string VARCHAR2(24)
    TEST@orcl> EXEC :search_string := '\S\S\S-\S\S\S\S-\S\S\S\S'
    PL/SQL procedure successfully completed.
    TEST@orcl> COLUMN "Searchword"     FORMAT A24
    TEST@orcl> COLUMN "Table"     FORMAT A6
    TEST@orcl> COLUMN "Column/Value" FORMAT A50
    TEST@orcl> SELECT DISTINCT SUBSTR (:search_string, 1, 24) "Searchword",
      2               SUBSTR (table_name, 1, 14) "Table",
      3               SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
      4  FROM   dba_tab_cols,
      5          TABLE
      6            (XMLSEQUENCE
      7           (DBMS_XMLGEN.GETXMLTYPE
      8              ( 'SELECT ' || column_name ||
      9               ' FROM ' || table_name ||
    10               ' WHERE REGEXP_INSTR
    11                     (UPPER (' || column_name || '),''' ||
    12                  UPPER (:search_string) || ''') > 0'
    13              ).extract ('ROWSET/ROW/*'))) t
    14  WHERE  table_name IN ('TABLE1', 'TABLE2')
    15  ORDER  BY "Table"
    16  /
    Searchword               Table  Column/Value
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>matching abc-defg-hijk data</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>xxx-xxxx-xxxx</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE2 <TAB2_COL2>this BCD-EFGH-IJKL too</TAB2_COL2>
    3 rows selected.

  • Invalid table name  error when updating object in collection using SQL

    Hi,
    I have pl/sql code where I am selecting a object from a collection using sql select query. I am processing this record and now I want to update the collection with the new object. ie. ensure that the object that was fetched be removed and this new one be added.
    considering my_ot is the object type and my_tt is the table type.
    DECLARE
    my_col my_tt;
    my_col1 my_tt
    my_var my_ot;
    my_var2 VARCHAR2(10);
    BEGIN
    // populating my_col1 with select query
    //populating my_col with select query
    FOR my_col1.FIRST .. my_col.LAST LOOP
    //populating my_var2
    BEGIN
    SELECT my_ot(c.field1, c.field2 ,c.field3) INTO my_var FROM TABLE(my_col) c WHERE c.field3 = my_var2
    //processing the field my_VAR
    UPDATE TABLE(my_col) c SET c.field1 = my_var.field1 , c.field2 = my_var.field2 , WHERE c.field3 = my_var.field3;
    EXCEPTION WHEN NO_DATA_FOUND
    my_col.EXTEND;
    my_col(my_col.LAST) := // new my_ot object
    END;
    END LOOP;
    Here, when compiling the update query is not being compiled. I am getting a error 'invalid table name'. Is there any way to modify an object in the collection without knowing its index?
    If not, is it possible to find the index of a object in the collection in select query?
    Thanks in advance
    Paddy

    Hi,
    Is there any way to find the index of a object in the collection? Then I will simply replace the object at that index, right!
    Thanks
    Paddy

  • Update record using SQL statement

    I have VB6.0 and Oracle 10G Express Edition in Windows 2000 Server. My procedure in VB 6.0 can't update record in the table using SQL statement, and the Error Message is " Missing SET keyword ".
    The SQL statement in VB6.0 look like this :
    General Declaration
    Dim conn as New ADODB.Connection
    Dim rs as New ADODB.Recordset
    Private Sub Command1_Click()
    dim sql as string
    sql = " UPDATE my_table " & _
    " SET Name = ' " & Text3.Text & " ' " & _
    " AND Unit = ' " & Text2.Text & " ' " & _
    " WHERE ID = ' " & Text1.Text & " ' "
    conn.Execute (sql)
    Private Sub Form Load()
    Set conn = New ADODB.Connection
    conn.Open "Provider=MSDASQL;" & "Data Source=my_table;"& "User ID =marketing;" & "Password=pass123;"
    I'm sorry about my language.
    What's wrong in my SQL statement, I need help ........ asap
    Best Regards,
    /Harso Adjie

    The syntax should be
    UPDATE TABLE XX
    SET FLD_1 = 'xxxx',
    FLD_2 = 'YYYY'
    WHERE ...
    'AND' is improperly placed in the SET.

  • How do you use PL/SQL to update a view?

    Hi there, I know how to use SQL to create and update a view. I am using it to pull data for a specific date.
    But now I want to find a way to parametized it (ie. the date) so that it can be run like a program each day (based on system date) to pull the latest data. I am thinking of using PL/SQL but not sure how it can be done.
    DECLARE
    run_date DATE := '10/12/2009';
    BEGIN
    END
    Can someone shed some light on how I can update a view? Thanks alot.

    Try this
    DECLARE
    run_date DATE := '10/12/2009';
    BEGIN
    execute imeediate 'create view view_name as select * from dual';
    END

  • LANGUAGE TRANSLATE USING SQL

    hi all
    is there any sql function that translate the column data into specified language
    i.e a function that have 2 argument one is string and other is desired language
    plz help its urgent

    plz help its urgent No it is not urgent. This is a free service and all are volunteers here. You cannot claim your post to be urgent compared to others. Additionally if it is that urgent you should contact Oracle support directly.
    Adith

  • Utils is a packege then should i use sql function in place of utils.

    Hi,
    while translating my sp from mssql to oracle few code is converted into : utils
    utils is a package i think so is it good to use it or should i find any sql equivenlent function.
    then please tel me oracle sql function for utils.patindex();
    yours sincerely

    Please bear in mind that most people here know Oracle but not SQL Server. So if you wish to use us as a translation service it would be helpful if you told us what the SQL Server function does.
    Googling for [url http://msdn.microsoft.com/en-US/library/ms188395(v=sql.90).aspx]PATINDEX() reveals that it is a function which returns the position of a pattern in a string. --The Oracle equivalent is INSTR().  [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions080.htm#sthref1174]Find out more.--
    Just to prove the point I now think INSTR() is the equivalent of CHARINDEX and what you actually want is one of the regex functions such as REGEXP_INSTR() [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions148.htm#sthref1419]Check it out.
    Oh, and please, don't use us as a translation service. Read the Oracle documentation or [url http://www.google.co.uk/#q=ms+sql+patindex+oracle&oq=ms+sql+patindex+oracle]use Google.
    Cheers, APC
    Edited by: APC on Feb 28, 2013 6:10 AM

  • Translation pattern not matching

    Hello All
    I am configuring a cucm 4.2 (yes i know its obsolete) integration with Lync 2010 and am having issues with a translation pattern.
    The Lync server is sending me 86xxxxxxxxxx for calls within china and will send 61xxxxxxxx for australia (strips the +)
    I have configured a [^86]! which should match any international numbers (other than China) and be prefixed and sent to the gateway. Here is the wiered thing I can dial +44xxxxxxxxxx using my lync client which proves that this is matching (when i delete the translation the call will fail).
    But when i dial a number like +61xxxxxxxx it doesnt get through and i get
    Cisco CallManagerDigit analysis: match(pi="1",fqcn="", cn="removedbymyself", plv="5", pss="LYNC:PT_Reception", TodFilteredPss="LYNC:PT_Reception", dd="61xxxxxxxx ",dac="0")
    Cisco CallManagerDigit analysis: potentialMatches=NoPotentialMatchesExist" on the traces.
    The LYNC partition has the translation rules. and the CSS assigned to the sip trunk has access to it. the CSS configured in the translation rules is the also the one assigned to the sip trunk.
    Anyone see this sort of thing before? how can i check if there is another transformation taking place?
    Only way i get round is to put a translation patter for " ! " and it works for all international calls.
    Thanks,

    Hi,
    Have you tried testing the call with Dialed Number Analyzer? I find that's a fantastic and often-overlooked tool for this kind of issue. If DNA shows the call will not route, it's probably a CSS issue for the Stafford gateway. If DNA shows the call will route, then it's probably a dial-peer issue on the Stafford gateway.
    -Jameson

  • Call to translation pattern took longer to reach the translated DN

    I translated 0 > 9000 which is pilot number for CUACE, noticed when press 0 to dial using particular CSS it's taking a few seconds before the call translated to 9000 and hear the ringing tone.
    Which part to check on this?
    Thanks

    What you are experiencing is expected, this is what is called Inter-digit time out. What is happening is that within your dial plan there is another pattern (could be another Translation Pattern, DN or Route Pattern) starting with "0".
    The following Cisco document explains this behavior:
    http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unified-communications-manager-callmanager/6171-interdigit-timeout.html
    Now going back to your concern and moving forward with the explanation, the Unified Communications Manager Platform is designed to route calls based on the closest match. When you dial "0" since there is another pattern starting also with 0 in your dial plan then, CUCM will wait for more digits. It is not until the T302 timer (that the document above mentions)  expires that CUCM routes the call based on the order of the partitions set or configure on the routing device (in your scenario it is going to be the CSS of the Translation Pattern)
    You will be able to check there is an over-lapping pattern within your system by going (in the Administration page for Call Manager) to Call Routing > Route Plan Report and:
    1) Type 0 on the search bar and hit search and all the results starting with 0 should display.
    Or
    2) Exporting your dial plan to a .csv file, open it with excel and apply filters to find the overlapping problem.
    You can also reduce the T302 timer from the Call Manager service parameters from the default value (15 seconds) to a minimum of 3 seconds.
    Hope this information helps

  • How to load a default value in to a column when using sql loader

    Im trying to load from a flat file using sql loader.
    for 1 column i need to update using a default value
    how to go about this?

    Hi!
    try this code --
    LOAD DATA
       INFILE 'sample.dat'
       REPLACE
       INTO TABLE emp
       empno   POSITION(01:04) INTEGER EXTERNAL NULLIF empno=BLANKS,
       ename   POSITION(06:15)  CHAR,
       job         POSITION(17:25)  CHAR,
       mgr       POSITION(27:30)  INTEGER EXTERNAL NULLIF mgr=BLANKS,
       sal        POSITION(32:39)  DECIMAL EXTERNAL NULLIF sal=BLANKS,
       comm   POSITION(41:48)  DECIMAL EXTERNAL DEFAULTIF comm = 100,
       deptno  POSITION(50:51)  INTEGER EXTERNAL NULLIF deptno=BLANKS,
       hiredate POSITION(52:62) CONSTANT SYSDATE
      )-hope this will solve ur purpose.
    Regards.
    Satyaki De.

  • Can you use SQL as a data source for a project in the same way you can in Excel?

    Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
    the data from the stored procedure as a series of tasks?
    Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
    it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.

    No, You can not use sql as a data source for a project.
    You have 3 options to achieve it:
    1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
    2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
    3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
    create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
    kirtesh

Maybe you are looking for

  • Copy to Goods Receipt PO function on Goods Return

    In current version 2007A there is no Copy to Goods Receipt PO function on Goods Return document. There is only Copy to A/P Credit Memo. This list should contain all available target documents.

  • "Back to Mac"may be slow  IMac

    What is "Back to My Mac" seen in ICloud accounts in "System Preferences" ? Thankypu

  • Fiber disconnects and reconnects for no reason i can fix!

     I am not very computer literate and being mobility disabled i have problems maniplulating the equipment without a lot of pain, yet i have found myself having to get up several times a day to try and reset this router, check cables and filter etc.For

  • Pricing Condition List

    Dear Expert, Need small help, I need to prepare a list of all Condition records (except for manual , automatic and Tax pricing PB00, PBXX, NAVS) with its value based on the last 6 months PO. This will help us analyze the no of records captured in pri

  • Animated text is fuzzy

    When i build my motion file the text looks fine, but when i create the DVD file and play it on the TV it looks rasterized and unaliased, is there a preference or setting to get text to be as sharp and as clear as possible? Any input would be great! t