Using wildcards with DirectoryFile.ListFiles()

Hi all,
I need to be able to selectively grab a list of files from a directory, which
then go on to get further processed. The selection criteria is that file names
will conform to a certain template (eg. "file*.dat"). I located the method I
need in the Framework.DirectoryFile object, called ListFiles()
Here's the quandary: The ListFiles method allows two optional parameters,
prefix and suffix, which it can use to filter the resultant array of files. The
on-line help specifically states that wildcard usage is not permitted. However,
in a test run I discovered two things: (1) the prefix and suffix parameters are
severly restricting given that wildcards are not allowed, and (2) Wildcards are
apparently permitted, anyway.
To clarify, here are the results of my little test:
============================================================ ========= =====
ListFiles(prefix=NIL, suffix=NIL) [ie. full contents of directory]
Fred.txt
Test1.txt
Test2.dat
Test2.txt
ListFiles(prefix=NIL, suffix='txt')
Fred.txt
Test1.txt
Test2.txt
ListFiles(prefix='Test2', suffix=NIL)
Test2.dat
Test2.txt
ListFiles(prefix='Test', suffix='txt') [Hoping to get 'Test*.txt']
- nothing -
ListFiles(prefix='Test*', suffix='txt') [Apparently not allowed]
Test1.txt
Test2.txt
============================================================ ========= =====
This test was conducted on Windows NT and VMS, and I got the exact same results
both times.
Would anyone care to comment on why this wildcard feature apparently works
fine, but is documented as not being allowed? I am hesitant to continue
programming on the assumption that it IS allowed and DOES work, because in a
future release it may in fact be crippled in order to satisfy the documented
specification, and my cries of anguish will be greeted with the ever-comforting
"We told you so".
FYI, we are using Version 20H1, with plans to upgrade 30F2 REAL SOON.
Ideas/comments anyone?
Andrew Bird
Horizon Technologies International

This is a very old thread. If you have a question you should really start your own thread for it.
In answer to your question...
UTL_FILE_DIR parameter has been deprecated since 10g.
You should no longer use the UTL_FILE_DIR parameter as it can leave security holes on your server, meaning people can access files and directories they shouldn't.
Oracle has replaced the functionality with Oracle Directories.
http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5007.htm#SQLRF01207
Example usage:
As SYS user:
CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
Then, grant permission to the users who require access e.g....
GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then your user (myuser in this example) will use that directory object inside your FOPEN statement e.g.
fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.

Similar Messages

  • Exchange Online Quarantine Search Using Wildcards

    Hey There,
    This page http://technet.microsoft.com/en-us/library/dn567976%28v=exchg.150%29.aspx states at the bottom you can use wildcards to search quarantined messages in EOP but I can't get the commandlet to work. I know the brackets are wrong but even are rectifying
    that issue the code still doesn't work.
    Is it possible to  use wildcards with get-quarantinemessage?
    Hibs Ya Bass!

    Please read full text most carefully.
    Q. Are wildcards supported when searching for quarantined messages? Can I search for quarantined messages for a specific domain?
    A. Wildcards are not supported
    when specifying search criteria in the Exchange admin center. For example, when searching for a sender, you must specify the full email address.
    "Not" usually means "not". if this is not the case please notify.
    ¯\_(ツ)_/¯
    Is this the sarcasm forum then?
    It also states that wildcards are not supported when using the Exchange Admin Center. I'm not using the admin center I'm trying to use the powershell code that Microsoft themselves have recommended directly below!
    Hibs Ya Bass!
    No.  The documentation clearly states wildcards re not supported.  Reqd the full text.
    Your issue appears to be a missing character.  Fix that and try again/
    ¯\_(ツ)_/¯
    So you're saying that wildcards aren't supported then go on to tell me the there's a missing character in the code that clearly uses a wildcard. Which is it?
    Hibs Ya Bass!

  • How to use keycols with wildcard & TABLEEXCLUDE & MAPEXCLUDE .

    Hi All,
    I would like to use KEYCOLS for Table which dont have Indexes,
    and in same parameter file i would like to use wildcard for table which has indexes.
    so parameter file will has to update ONLY,when table without index will created.
    and wildcard will resolve for tables which will created with index.
    Could you please help me on how to used KEYCOLS in mixed Configuration.
    where TABLEEXCLUDE will exclude tables which dont have indexes and that table will mapped with KEYCOLS.
    Below are different various combination of syntax which did not worked.
    DYNAMICRESOLUTION
    DDL INCLUDE MAPPED OBJNAME IDENTITY.*
    TABLE IDENTITY.TBBILLING_DUMMY ,KEYCOLS (BILLINGKEY);
    TABLE IDENTITY.*;
    TABLEEXCLUDE IDENTITY.TBBILLING_DUMMY;
    *** Total statistics since extract started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00
    DYNAMICRESOLUTION
    DDL INCLUDE MAPPED OBJNAME IDENTITY.*
    TABLE IDENTITY.*;
    TABLEEXCLUDE IDENTITY.TBBILLING_DUMMY;
    TABLE IDENTITY.TBBILLING_DUMMY ,KEYCOLS (BILLINGKEY);
    *** Total statistics since extract started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00
    DYNAMICRESOLUTION
    DDL INCLUDE MAPPED OBJNAME IDENTITY.*
    TABLEEXCLUDE IDENTITY.TBBILLING_DUMMY;
    TABLE IDENTITY.*;
    TABLE IDENTITY.TBBILLING_DUMMY ,KEYCOLS (BILLINGKEY);
    *** Total statistics since extract started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00
    DYNAMICRESOLUTION
    DDL INCLUDE MAPPED OBJNAME IDENTITY.*
    TABLE IDENTITY.TBBILLING_DUMMY ,KEYCOLS (BILLINGKEY);
    TABLEEXCLUDE IDENTITY.TBBILLING_DUMMY;
    TABLE IDENTITY.*;
    *** Total statistics since extract started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00
    DYNAMICRESOLUTION
    DDL INCLUDE MAPPED OBJNAME IDENTITY.*
    TABLEEXCLUDE IDENTITY.TBBILLING_DUMMY
    TABLE IDENTITY.*;
    TABLE IDENTITY.TBBILLING_DUMMY ,KEYCOLS (BILLINGKEY);
    *** Total statistics since extract started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00
    DYNAMICRESOLUTION
    DDL INCLUDE MAPPED OBJNAME IDENTITY.*
    TABLE IDENTITY.TBBILLING_DUMMY ,KEYCOLS (BILLINGKEY);
    TABLEEXCLUDE IDENTITY.TBBILLING_DUMMY
    TABLE IDENTITY.*;
    *** Total statistics since extract started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00
    ------------------=========I tried for replicat for different set of tables , which failed too.
    TEST 2 = failed
    MAPEXCLUDE ODS.OS_HISTORYSTEP_BLD
    MAP ODS.*,TARGET ODS.*;
    MAP ODS.OS_HISTORYSTEP_BLD, TARGET ODS.OS_HISTORYSTEP_BLD, KEYCOLS (id,entry_id,caller);
    stats identdr,totalsonly ODS.OS_HISTORYSTEP_BLD
    Sending STATS request to REPLICAT IDENTDR ...
    *** Total statistics since replicat started     ***
            Operations                                         1.00
            Unmapped operations                                1.00
            Excluded operations                                1.00
    TEST 3 = failed
    MAPEXCLUDE ODS.OS_HISTORYSTEP_BLD;
    MAP ODS.*,TARGET ODS.*;
    MAP ODS.OS_HISTORYSTEP_BLD, TARGET ODS.OS_HISTORYSTEP_BLD, KEYCOLS (id,entry_id,caller);
    *** Total statistics since replicat started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Excluded operations                                1.00
    -------------------------------------------------------------------TEST 4 = failed
    MAP ODS.*,TARGET ODS.*;
    MAPEXCLUDE ODS.OS_HISTORYSTEP_BLD;
    NOINSERTAPPEND
    MAP ODS.OS_HISTORYSTEP_BLD, TARGET ODS.OS_HISTORYSTEP_BLD, KEYCOLS (id,entry_id,caller);
    *** Total statistics since replicat started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Excluded operations                                1.00
    -------------------------------------------------------------------TEST 5 = failed
    MAP ODS.OS_HISTORYSTEP_BLD, TARGET ODS.OS_HISTORYSTEP_BLD, KEYCOLS (id,entry_id,caller);
    MAPEXCLUDE ODS.OS_HISTORYSTEP_BLD
    MAP ODS.*,TARGET ODS.*;
    No active replication maps
    DDL replication statistics:
    *** Total statistics since replicat started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00-------------------------------------------------------------------
    TEST 6 = failed
    MAP ODS.OS_HISTORYSTEP_BLD, TARGET ODS.OS_HISTORYSTEP_BLD, KEYCOLS (id,entry_id,caller);
    MAPEXCLUDE ODS.OS_HISTORYSTEP_BLD;
    MAP ODS.*,TARGET ODS.*;
    No active replication maps
    DDL replication statistics:
    *** Total statistics since replicat started     ***
            Operations                                         1.00
            Mapped operations                                  0.00
            Unmapped operations                                1.00
            Other operations                                   0.00
            Excluded operations                                1.00Edited by: 949509 on Dec 8, 2012 5:21 PM

    This configuration is not supported with DDL+DML replication.
    WILDCARDRESOLVE DYANAMIC / DYNAMICRESOLUTION is culprit.
    while used any parameter above. DDL replication is not supported.if used then table mention in TABLEXCLUDE will be excluded from parameter file no matter even if you map table using TABLE schema.tablename .
    to use below syntax you must used WILDCARDRESOLVE IMMEDIATE.
    TABLE SCHEMA.TABLENAME ,KECOLS (COL1,COL2);
    TABLEEXCLUDE SCHEMA.TABLENAME
    TABLE SCHEMA.*;
    Reference.
    Can I Use A Wildcard In An Extract TABLE Statement For All Of The Tables Except One That Does Not Have A Primary Key? [ID 970419.1]

  • Help using -replace with wildcard characters, specifically braces

    Hello all,
    Needing help in using -replace with literal wildcard characters, specifically the braces characters. From reading old posts online this seems to have been a notorious shortcoming of PowerShell, but not sure if it's been resolved or not. My simple
    code tries to remove the braces as follows (would like to keep the foreach loop and everything as is if possible):
    $string = "test[]"
    $braces = @("``[","``]")
    Foreach($brace in $braces){
    If($string -like "*$brace*"){
    $string = $string -replace ($brace,"")
    write-host $string
    This code gives an error at the -replace line, saying "The regular expression pattern `] is not valid." I'm not sure how to pass the literal brace characters to the -replace parameter? Can this be done?

    -like is a wildcard operator (it recognized wildcard patterns like * ,? and [a-z].
    For a regular expression you use the -match operator.  
    Wildcard patterns and regular expressions are not interchangeable.
    See:
    get-help about_wildcards
    get-help about_regular_expressions
    for an explanation and examples of each one, and 
    get-help about_comparison_operators
    for examples of using -like and -match.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • How to search for files using wildcards * and ?.

    Hi All,
    I've been searching the forum for a couple of hours now and have been unable to find a good example of how to search a directory (Windows OS) for a file using wildcards * and/or ?. Does anyone out there have a good example that they can share with me?
    Thanks

    Hi All,
    First of all I want to thank everyone for taking the time to respond to my question. All of your responses where greatly appreciated.
    I took the example code that was posted by rkconner, thanks rkconner, and modified it to allow me to search for files in a directory that contain * and/or ?. Yes, I said and/or! Meaning that you can use them both in the same file name, example: r??d*.t* would find readme.txt.
    I've posed my complete and thoroughly document code below. I hope it is very helpful to other as I have searched many forums and spent many hours today trying to resolve this problem.
    Enjoy
    * File Name: WildcardSearch.java
    * Date: Jan 9, 2004
    * This class will search all files in a directory using the
    * asterisk (*) and/or question mark (?) as wildcards which may be
    * used together in the same file name.  A File [] is returned containing
    * an array of all files found that match the wildcard specifications.
    * Command line example:
    * c:\>java WildcardSearch c:\windows s??t*.ini
    * New sWild: s.{1}.{1}t.*.ini
    * system.ini
    * Command line break down: Java Program = java WildcardSearch
    *                          Search Directory (arg[0]) = C:\Windows
    *                          Files To Search (arg[1]) = s??t*.ini
    * Note:  Some commands will not work from the command line for arg[1]
    *        such as *.*, however, this will work if you if it is passed
    *        within Java (hard coded)
    * @author kmportner
    import java.io.File;
    import java.io.FilenameFilter;
    public class WildcardSearch
         private static String sWild = "";
          * @param args - arg[0] = directory to search, arg[1] = wildcard name
         public static void main(String[] args)
              String sExtDir = args[0]; // directory to search
              sWild = args[1];   // wild card to use - example: s??t*.ini
              sWild = replaceWildcards(sWild);
              System.out.println("New sWild: " + sWild);
              File fileDir = new File(sExtDir);
              File[] arrFile = fileDir.listFiles(new FilenameFilter()
                   public boolean accept(File dir, String name)
                        return (name.toLowerCase().matches(sWild));
              for (int i = 0; i < arrFile.length; ++i)
                   System.out.println(arrFile.getName());
         }     // end main
         * Checks for * and ? in the wildcard variable and replaces them correct
         * pattern characters.
         * @param wild - Wildcard name containing * and ?
         * @return - String containing modified wildcard name
         private static String replaceWildcards(String wild)
              StringBuffer buffer = new StringBuffer();
              char [] chars = wild.toCharArray();
              for (int i = 0; i < chars.length; ++i)
                   if (chars[i] == '*')
                        buffer.append(".*");
                   else if (chars[i] == '?')
                        buffer.append(".{1}");
                   else
                        buffer.append(chars[i]);
              return buffer.toString();
         }     // end replaceWildcards method
    }     // end class

  • Using wildcards (*) in sender file adapter - FTP type

    Hi guys!
    Dooes it work using wildcards in sender file adapter (FTP type(!) (filesystem obviously work))? I tried it and it failed. it works only for exact name..
    I read some articles about FTP and the result is, that ftp work always only with 1 file, so I'm wondering, if this is possible.
    Thanks for info!
    Olian

    Thanks for all replies..
    I know of course, that * can be used, I use it in many scenarios too. But on a FileSystem. It is not working if the sender type is FTP.
    *, ., *.dat, ...  nothing like that works..  Just exact file name.
    I am able to pick up file, if I specify it's exact name, so there should be no problem with permissions..
    Please, I'd appreciate one reply with comfirmation: yes, we are using asterisk (*) , we access source files via FTP and they are processed.
    Is there anybody with this experience, that it works?
    Thank you!
    Olian

  • Is it possible to use wildcards to match cell contents in an if statement?

    I need to return a ID along with some other information on a page by page basis, so that the information comes out linked by position.  I use a couple of loops and if statements to navigate through the document.  I am able to use exact matches of cell contents which is fine when the contents doesn't vary.  But the IDs, though they have a similar pattern, are all different. In a menu driven search, I am able to find what I need with '150^9^9^9^9^9-^9^9^9' But when I try putting this (or any number of [0-9], *, ? combinations) it fails.  Is it possible to use wildcards?  The symbol used for the match (==) makes me suspect that it is not possible and that only literal, exact matches will work.  But I wanted to check with the experts before giving up.
    Thanks
    pcbaz

    Thanks for the input.  You're right, a GREP search is much more efficient.  But what I'm trying to do and the circumstances here don't allow me, I think,  to go that route. I am trying to generate a list of values coming from several textframes on a single page and have them come out so that I can tell which values belong together.
    I'm using an inherited document with masters that were created 'manually';  the index numbering for textframes and tables is random. I navigate through the pages, looping through textframe indices asking ' does this textframe exist?' If so, I ask if it is a table -- if no, it is a simple textframe and I ask about the ID, if yes, I ask if the contents of cell (0,0) (invariant position and contents) are equal to the table I want..  I am sending the ID and other pieces of information from the table to one row of a new table on a new page.  So the ID and other information from a single page are linked by being in the same row.
    I know this a little 'off-normal' -- I'm using the search to navigate through the document and find things by location the way you do with a spreadsheet.  I have devised a work-around that helps me get around the fact that the ID is not invariant.  I create a list of the (exact) IDs from another document, equating them to a variable ('a').  I then loop through the list of IDs and ask if the contents of the textframe is equal to 'a'..This works o.k, unless there happens to be an extra space, a different kind of hyphen, etc. It would be so much easier if I could use the wildcards that work in a menu-driven text or GREP search in script just to ask about the contents of the textframe.
    Thanks again
    pcbaz (Peter BIerly)
    P.S. we have since rewritten the masters so this problem will not exist in the future -- we now know exactly which textframe and/or table indices to refer to to get any particular bits of information and don't need to ask questions about the contents.

  • Find and Replace using Wildcards

    I am following the procedure outlined in Trent’s Blog:
    http://www.trentmueller.com/blog/search-and-replace-wildcard-characters-in-dreamweaver.htm l
    This is fantastic stuff and will really help me.
    I have a few (but only a few) times had success.
    It says to “Use regular expression.”  What does that mean?  What is an “irregular expression?”  I have tried with the box checked and unchecked.  Usually with the box checked it will not Find my string.  I uncheck the box and it sometimes does.
    Example:
    Link to    www.schembs.com/TEST_jds_1.html
    At the moment all the Cases are identical.  I have not uploaded the .css to the site so the right-most formating is not properly displaying.  It does work when the .css is available.
    In the source code I literally copy the line of code:
    <p class="type_X"><u>Joh. Heinrich Sch&ouml;m (1713-1785) <span  class="right-most">1.</span></u></p>
    and paste it into the Find box of F&R.  I then put my cursor above the line and it does not Find it, giving me the “Done.  Not found in current document.” response.  I uncheck the “Use regular expression” box and it will find it.
    THEN,
    I try using a wildcard (with the box checked), Finding:
    <p class="type_X">([^<]*)< p>
    or
    <p class="type_X">[^”]*< p>
    and it will find the misc. lines, e.g. where the text is “Case #1”, but not the lines of interest, with Heinrich’s name.  With the box unchecked it Finds nothing.
    Really would appreciate help.  Thanks.
    jds

    jds zigzag wrote:
    It says to “Use regular expression.”  What does that mean?
    A regular expression is a pattern for matching text. It uses a combination of literal characters and special symbols or sequences of characters (technically called metacharacters or metasequences) to represent such things as the beginning and end of a line or any alphanumeric character. For example, \d represents any number (single digit), \d* represents zero or more numbers in sequence.
    I have written a tutorial series on using regular expressions in Dreamweaver here: http://www.adobe.com/devnet/dreamweaver/articles/regular_expressions_pt1.html.
    I try using a wildcard (with the box checked), Finding: 
    <p class="type_X">([^<]*)< p>
    or
    <p class="type_X">[^”]*< p>
    They're not wildcards, but regular expressions. The first part matches the literal characters <p class="type_X">. The next sections use metacharacters.
    ([^<]*) matches zero or more characters (and as many as possible) that don't include an opening angle bracket (<). The parentheses "capture" the value that's matched so it can be used in a replace sequence.
    [^"]* matches zero or more characters (and as many as possible) that don't include a double quote. There are no parentheses, so the value is not captured for reuse.
    The closing <p> matches those literal characters.
    Regular expressions are not easy, but they're extremely powerful, and a good skill to acquire.

  • Using Wildcards in Value Help

    Hi,
    I have a input filed ZPERNR and i have assigend PREMN search help on this field.
    I am able to search people in the organisation and it all works great until I use wildcards
    When I enter SMITH in the last name in the value help it comes back with the list of people whose last name is SMITH
    Problem:
    When I enter SMITH* in the last name I get no results
    In the SQL trace I noticed it changed my SMITH* to smith%
    Not sure if there is any sap note to this issue
    Any ideas?

    Hi Jörg,
    Yes the icon (Pattern) does appear after I enter, however I still don't get any results.
    The weird thing is the value help works perfectly alright in r/3
    Not sure why it is not working for me in the portal.
    Thanks for your reply
    Kal

  • Using Wildcards in Mapping Script

    Hi everybody, im new in FDM and i have some doubts about mapping scripts.
    I have to recreate this Hyperion Translation Rule into FDM:
    ACC_SAP              tm_sap     Reverse Sign         UD4
    N21099Z300     {NULL}     FALSE     CD1
    D31199Z000     {NULL}     FALSE     CD1
    ????99     *     FALSE     CD
    ACC_SAP is the source account
    TM_SAP will be loaded into UD5 (as look up)
    How could i manage with a like mapping?
    I guess using a script but im not sure how to use wildcards within scripts, is it possible?
    Another related question, in a explicit mapping, how can i manage with NULL values if i want to assign them [None] value, do i have to put NULL in th source field?
    BR and thanks

    Thanks KellyDGreen. With the exampl shown is as you say but what if tm_sap has wildcards?
    F.i
    ACC_SAP TM_SAP TARGET_CUSTOM4
    999? 123? 198276
    Suppose that TM_SAP has been stored in UD5. Source dimensions are different from target dimension so i have to do it via script, dont I?
    BR
    Francisco

  • Using wildcards in RDBMSRealm

    Hello.
    I'm using WLS 5.1 with SP6 running on JDK1.2.2, platform is Windows NT
    Server 4.0 SP6.
    I want to know if there is a way to use wildcards to create entries for
    RDBMSRealm.
    The reason I want to use wildcards is that if I create an entry in the
    ACLENTRIES table like this...:
    A_NAME : weblogic.url
    A_PRINCIPAL : testuser
    A_PERMISSION : /index.html
    I can restrict access for the URL http://localhost:7001/index.html to
    "testuser."
    However, when I create this entry, weblogic prompts for a username even if I
    access a URL other than http://localhost:7001/index.html, for example,
    http://localhost:7001/test.html.
    When this happens, I cannot access "test.html" by using any of the usernames
    that I have listed in my RDBMSRealm USERS table.
    I was thinking that this works like the "weblogicURL.policy" file.
    If you create one entry in the "weblogicURL.policy" file, all other URL
    defaults to "everyone deny access".
    I remembered that you can use wildcards in the "weblogicURL.policy" file, so
    I tried changing the A_PERMISSION column to the following six patterns...:
    A_PERMISSION : *
    A_PERMISSION : -
    A_PERMISSION : *.html
    A_PERMISSION : /*
    A_PERMISSION : /-
    A_PERMISSION : /*.html
    Using the six patterns, I tried to access http://localhost:7001/test.html
    each time.
    However, none of the four patterns above seemed to work, since I was
    prompted and couldn't access even if I tried every username that I have in
    my RDBMSRealm, in all of the six cases.
    If I cannot use wildcards, this means that I would have to create entries
    for every single HTML pages. (probably JSP pages, too)
    Is there a way to use wildcards in the RDBMSRealm so that I can simplify
    this?
    Thanks ahead of time.
    RYotaro.

    Thanks, Terry and Kishore!
    I guess it's not a very smart idea to restrict access on URLs using the
    RDBMSRealm...
    What I was thinking was that if it was possible to put entries for Servlets,
    URLs, etc... into one place, it would be easier for managers to manage
    access control.
    # For instance, it could cause some people confusion if access control for
    URLs are listed in weblogicURL.policy and servlets are listed in RDBMSRealm.
    It would be better if all of the entries are written in one place.
    As a matter of fact, I have tried web-applications some time ago, and am
    thinking of going back to it.
    # As I recall, web-applications cannot be "hot-deployed." But there's
    probably a way to get around it.
    Thanks again!
    Ryotaro.
    "Kishore Talari" <[email protected]> wrote in message
    news:[email protected]...
    >
    Try using a web application! Servlet spec 2.2+, WLS 510, SP6.
    You can do a world of URL patterns!
    The only change you will have to make is package the jsp/html,etc pagesinto a .war archive and write a web.xml file.
    >
    "Terry" <[email protected]> wrote:
    I'm not sure that this is the way you want to go about it.
    AFAICR there is no need to add aclentries in the RDBMSRealm database when
    using the weblogicURL.policy file - simply add an entry to the policy
    file
    allowing access to all urls for all users, then add more specific entries
    for those urls you wish to restrict access to. Adding stuff to the
    ACLENTRIES table will not have any effect (I know because that is what I
    tried first).
    The documentation on wublogicURL.properties should tell you all that you
    need to know
    terry
    Ryotaro Toda <[email protected]> wrote in message
    news:[email protected]...
    Hello.
    I'm using WLS 5.1 with SP6 running on JDK1.2.2, platform is Windows NT
    Server 4.0 SP6.
    I want to know if there is a way to use wildcards to create entries for
    RDBMSRealm.
    The reason I want to use wildcards is that if I create an entry in the
    ACLENTRIES table like this...:
    A_NAME : weblogic.url
    A_PRINCIPAL : testuser
    A_PERMISSION : /index.html
    I can restrict access for the URL http://localhost:7001/index.html to
    "testuser."
    However, when I create this entry, weblogic prompts for a username even
    if
    I
    access a URL other than http://localhost:7001/index.html, for example,
    http://localhost:7001/test.html.
    When this happens, I cannot access "test.html" by using any of theusernames
    that I have listed in my RDBMSRealm USERS table.
    I was thinking that this works like the "weblogicURL.policy" file.
    If you create one entry in the "weblogicURL.policy" file, all other URL
    defaults to "everyone deny access".
    I remembered that you can use wildcards in the "weblogicURL.policy"
    file,
    so
    I tried changing the A_PERMISSION column to the following six
    patterns...:
    >>>
    A_PERMISSION : *
    A_PERMISSION : -
    A_PERMISSION : *.html
    A_PERMISSION : /*
    A_PERMISSION : /-
    A_PERMISSION : /*.html
    Using the six patterns, I tried to accesshttp://localhost:7001/test.html
    each time.
    However, none of the four patterns above seemed to work, since I was
    prompted and couldn't access even if I tried every username that I havein
    my RDBMSRealm, in all of the six cases.
    If I cannot use wildcards, this means that I would have to createentries
    for every single HTML pages. (probably JSP pages, too)
    Is there a way to use wildcards in the RDBMSRealm so that I cansimplify
    this?
    Thanks ahead of time.
    RYotaro.

  • Using wildcards in CCM 2.0 search

    Hi experts
    we're using SRM 5.0 (SRM 5.5 Server) with CCM 2.0.
    Is it possible to use wildcards in catalog search?
    Are there any documents about wildcards in CCM ?
    Regards.
    Sven

    Hi
    Yes TREX is mandatory for CCM2.0 (written in the master guide). Please restart the TREX server and retry, if this does not in your case.
    I guess, There are two wildcard characters:
    ? stands for a single character
    stands for a sequence of any combination characters of any length.
    Related links ->
    CCM 2.0 Simple search on CSE does not show any result
    Re: Cross catalog search doesn't work for CCM 2.0
    Re: Search function for Catalogue CCM 1.0 SRM version 4
    CCM view rules - based on wild cards?
    Re: Is TREX required for CCM 2.0 search?
    Hope this answers your queries. Do let me know.
    Regards
    - Atul

  • SSIS and Secured FTP Commands to GET a Remote File using wildcards

    So my biggest caveat here is dealing with wildcards! For the life of me I cannot find any good examples of SSIS and scripting that uses FTP wildcards to GET certain Files. In a nutshell, here's what I need to do...
    Query a SQL Server Database which has a parsed File Name, the first 50 characters of the file name.
    The Query "Result Set" is put into an Object Variable User::SQLServerFileList
    I then utilize a "Foreach Loop Container" which reads the User::SQLServerFileList and puts it into Variable User::SQLServerFileNm...which is again the first 50 characters of the File Name
    Within the "Foreach Loop Container", I then utilize an "Expression Task" which builds a variable User::RemoteFileLookup which is a concatenation of the User::RemoteFolderPath + User::SQLServerFileNm + the wildcard *(Variable
    User::RemoteWildCard)
    I then try and utilize a "FTP Task" to use that concatenated Variable to go and GET the Filename but every time I try, it does not like what I'm sending via the "FTP Task"
    Error: 0x0 at TF Secure FTP Task, ExecuteTask Failed:: Illegal characters in path.
    I realize I might have to do something like this via C#.
    My biggest challenge is providing the GET Command via the Remote FTP Site with a parsed Filename and utilizing a wildcard.
    mc7i1231_20140227_050114_27_05_02_09*.999
    And the Filename that exists on the FTP Server is...
    mc7i1231_20140227_050114_27_05_02_09_x12_a43419452ca844a9b8a00f61e655dca3.x12-20140303180032.999
    Can any gurus out there PLEASE help me out???
    Thanks in advance for your review and am hopeful for a reply.
    PSULionRP

    Hi PSULionRP,
    According to the document
    FTP Task, we can read that:
    The FTP task supports the ? and * wildcard characters in paths. This lets the task access multiple files. However, you can use wildcard characters only in the part of the path that specifies the file name. For example, C:\MyDirectory\*.txt is a valid
    path, but C:\*\MyText.txt is not.
    So, when you use expression tobuild the variable RemoteFolderPath, make sure the evaluated value of the expression conforms to the above rule. 
    Regards,
    Mike Yin
    TechNet Community Support

  • Using wildcards

    I'm a little confused on how to use wildcards to find certain things in a sql query.
    I need to pull omit certain tables from my query, and I understand how to do it by doing a 'Ma*', but am not certain how to find preceeding characters.
    For instance, my column_name will be formatted like this
    aaa_vw_a...
    and I need to pull all of the ones that contain the vw and the vwe out of the list. I know I need the like but not sure how to format the wildcards.
    Thanks for the help.

    echo1
    Thanks for all your help.
    However, when I run my query, I have noticed I'm not getting any less rows than what I was with my original query. I have put my original query below, with the two rows you have suggested, and I still get the same number for the output.
    select 'select '''||column_name||
    ''', max(length('||column_name||')) from '||table_name||';'
    from user_tab_cols
    --where NOT (column_name like '___\_vw' or column_name like '___\_vwe')
    --where NOT ( INSTR(table_name, 'vw') > 0 OR INSTR(table_name, 'vwe') > 0)
    The INSTR seems like it might be the right idea, but then it will get things that contain vw and vwe, when I am more specifically looking for one that contains vw and vwe. Not sure what is wrong w/ my query to why it isn't eliminating anything.
    Thanks for your help.

  • Using wildcards for String compare

    Hello,
    I want my prog to find out all Strings which start with the letters 'File'. How can I make a String compare by using wildcards ?
    Thanx,
    Findus

    You may use the String method startsWith to find strings beginning with File. eg. filename.startsWith("File")
    for more complicated comparisons you might want to use regular expressions.

Maybe you are looking for