Contact Us

DBA Rate Watch

Enterprise Database Services: Oracle - Sql Server - ETL - Training at Wholesale Pricing


Strange But True IT Stories

  • SSIS Metadata, SSIS likes to keep secrets
    I was working on a simple Data Flow task, and outputting data to a flat file destination, for a Financials GL load.
    I have a view in the database essentially doing all my transformations and formatting, as a requirement is to write Date fields in MM/DD/YYYY format.
    In my view I used a CONVERT( varchar(10), MY_DATE, 101)  to get the format - however - SSIS kept turning this into a Date field as YYYY-MM-DD.

    So I hook up a Data Viewer on the pipeline to the Flat File destination, and run the package.  Looks good.  The date field is a varchar as MM/DD/YYYY.
    I open the flat file up and still the value is being written as YYYY-MM-DD.  Its almost as SSIS ignores my Advanced Setting in the the FF connection manager to say its a DT_STR type.
    I delete the FF connection manager and recreate it, to the same result.  No other errors reported.  I mess with the OLE DB source query, to no avail whatever I do, the Flat file is written as YYYY-MM-DD.  

    Now knowing SSIS's end result is a .dtsx file and XML related - I know I need to recreate some of these objects here and there - its the nature of the beast.
    So although SSIS was not complaining about anything - I knew it had to be metadata related at some point.  
    By opening SSMS and doing an alter on the view to recompile it - it threw SSIS to detect the metadata change.  So I must have had some old metadata somewhere in the .dtsx that was not being refreshed.  Once SSIS prompted me that it found the change ( after my view ALTER - to recompile ), I started to see my correct formatting of MM/DD/YYYY for the column.

    Posted Aug 17, 2010 11:42 AM by William Yeager
  • Fighting a vanilla Apex Oracle 11g install
    This time on Windows.  Just installed 11g on my 64bit Windows 7 box to do some Apex work.
    First problem, TNS connect issues on local Sqlplus.  Could not simply set the SID and connect / as sydba.

    The problem was that I have the 32 bit 11g client installed as well.  I just had to fix my path to put the client bin path after the 64 bit server path.  
    Bingo that was fixed.

    Next, couldn't connect to the default localhost:8080/apex site.  This required a bit more detective work, and i'm surprised this doesn't work out of the box.

    I followed these instructions I wrote last year:

    Configuring the Embedded Apex Gateway on Windows/Linux

    1.       Go to the $ORACLE_HOME/apex Directory

    2.       Use SQL*Plus to connect as SYS to 11g database where APEX is installed

    3.       SQL> @apxconf

    a.       Enter values for the XDB listener port and the password

    4.       Unlock the ANONYMOUS / APEX_PUBLIC_USER account

    a.       SQL> alter user anonymous account unlock ;

    b.      SQL> alter user apex_public_user account unlock ;

    5.       Enable the Oracle XML DB HTTP server

    a.       SQL> exec  DBMS_XDB.SETHTTPPORT(8080) ;

    b.      SQL> commit;

    6.       You should now be able to hit:  http://localhost:8080/[apex] | [apex_admin]

    This didn't fix the problem.

    The issue is that my XDB service was not appearing in the Listener status;  This is how I set it.

    This fix was to set the LOCAL_LISTENER parameter in my spfile:  

        SQL> alter system set LOCAL_LISTENER="(address(protocol=tcp)(host=localhost)(port=1521))" scope=both ;

    I then bounced both the DB and listener for good measure.  Then I did a :

        SQL> alter system register;

    And voila it worked ...



    Posted Aug 1, 2010 1:04 PM by William Yeager
  • SSIS and UNC Paths
    I had finished a package today in 2008 SSIS and it ran fine - no issues.  Ran it from dtexec and the package executer - no issues.
    But then when I scheduled it with the Sql Agent to run every week - it ran successfully - but I didn't see any result.  The result was supposed to be some updated files out on the network - that are sent to some people as email attachements.
    My first suspicion was Agent permissions.  I created a credential and a proxy, then ran it again under the proxy.  Same result.  Success in the job and the package, but no updated files or emails.
    A little searching gave me the answer - and I should have known.  I had mapped drive dependencies in my package, although they were being created via property expressions.  Once I took out the drive letter mapping and put the full UNC path - it worked find under the agent.  For example, instead of using the P: drive,  use \\server\folder\folder\....  etc etc.  
    Another good practice in SSIS design.  Always use UNC paths.
    Posted Jun 11, 2010 2:03 PM by William Yeager
  • Follow us on Twitter: @itdirect
    Find us on twitter @itdirect and see how we are saving clients by helping them go direct !
    Posted May 17, 2010 10:37 AM by William Yeager
  • Configuring the Embedded Apex Gateway on Win/Linux
    There are two ways Apex can run on your server in terms of HTTP connectivity.
    1. The standalone HTTP Server
    2. The embedded XML HTTP Gateway

    In production environments, you most likely will want to run headless standalone HTTP configurations ( no web interface ) for security reasons.
    In sandbox or smaller dev or VM environments - the XML Gateway works well.  In order to configure the gateway, you must perform some basic steps:
    Configuring the Embedded Apex Gateway on Windows/Linux

    Go to the $ORACLE_HOME/apex Directory
    Use SQL*Plus to connect as SYS to 11g database where APEX is installed
    SQL> @apxconf
            Enter values for the XDB listener port and the password
    Unlock the ANONYMOUS / APEX_PUBLIC_USER account
    SQL> alter user anonymous account unlock ;
    SQL> alter user apex_public_user account unlock ;
    Enable the Oracle XML DB HTTP server
    SQL> exec  DBMS_XDB.SETHTTPPORT(8080) ;
    SQL> commit;

    Don't forget this - undocumented - sometimes the URL will not be found - unless you do a:
            SQL> alter system register;

    You should now be able to hit:  http://localhost:8080/[apex] | [apex_admin]

    Posted Mar 8, 2010 9:37 AM by William Yeager
Showing posts 1 - 5 of 8. View more »


Professional Enterprise Database Services without Middleman Markups


At AdminsDirect, we offer expert Database consulting services without middleman and consulting company overhead markups.  We do this because we have no overhead to pass along to you.  Our clients save up to 50% or more with our direct hourly rates.

 
This is what the people in the middle don't want you to know.  You have a choice.  It makes sense to hire consultants when it doesn't come at the traditional high prices that consulting companies command for database engineering.


AdminsDirect, strives to bring new thinking and a new approach to this age-old method of recruiter and other 3rd party markups for large, medium or small business IT consulting. You won't be paying for middle-management, soda machines and ping pong tables.  You'll be paying for IT deliverables and results at low prices by going direct.

 

We offer a wide range of information technology services and training to meet your needs, fit your budget and exceed your expectations.  We specialize in Virtualization, Managed Services, Windows Enterprise IT, Oracle, Microsoft Sql Server and MySQL administration, development, security and support - onsite or remote.


Contact us today to find out how much you could be saving by going Direct.


Keep up with our blog and follow more Strange But True IT Stories !





What I'm Working On ...

  • On Site MS Sql Server Training
    We offer Microsoft SSIS and Sql Server Admin classes at wholesale rates !
    As freelance MCT, we can come to you and train your staff at a fraction of regular costs - while using the same Microsoft curriculum !
    Microsoft SSIS 2005 / 2008
    Sql Server Administration 2005 / 2008
    T-SQL / Querying
    Reporting Services
    Save up to 40%+ 
    Posted May 17, 2010 10:34 AM by William Yeager
  • CentOS 5.x and Oracle 11g SELinux
    I was installing 11.2.0 on a CentOS 5.2 VM and found this issue:
    Although I had disabled SELinux manually via /etc/selinux/config :
    SELINUX=disabled

    I could not start sqlplus - was getting this error:
    sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.1.0/db_1/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied

    This stumped me because even in gnome it was showing SELinux as disabled.
    Once I manually changed the default value back to:
    SELINUX=enforcing
    and saved my work - then went back through gnome and made the change to disabled via the gui - and saved - sqlplus started to work normally.


    Posted Mar 8, 2010 8:52 AM by William Yeager
  • CentOS 5.x and standalone HTTP Server
    Posted Oct 20, 2009 12:29 PM by William Yeager
  • Oracle SSO and Apex integration
    I have a requirement to redirect to an Apex Application after authentication via LDAP or Oracle BO.  
    Will be interesting .... will post when figured out !

    Follow up:  got this working after a lot of learning about Active Directory and help from infrastructure folks at my project.
    Took some time to get the base directory right for authentication of users.

    The next step is to yank the users credentials from the Desktop and submit.  Let me know if you need some code.
    Posted Oct 20, 2009 12:31 PM by William Yeager
  • Throwing me down the Silicon Slopes
    I've entered my company into the Silicon Slopes Utah HQ businesses twice now and somehow it gets removed.
    Whats up with that?  Another Utah rig with an agenda ?
    Is Omniture still behind the wheel there ?
    Why can't I list my company w/ products and services on Silicon Slopes?
    With the state of business in SLC these days, perhaps nobody is steering the boat ....
    Posted Jul 17, 2009 6:41 PM by William Yeager
Showing posts 1 - 5 of 6. View more »

Where am I ?

CityWeek
Salt Lake City, UT January 31, 2010 
Chicago, IL September 20, 2009 
Greenville, SC September 6, 2009 
Salt Lake City, UT August 30, 2009 
Salt Lake City, UT August 23, 2009 
Showing 5 items from page Where am I? sorted by Week. View more »
                                    

  Sign in   Recent Site Activity   Terms   Report Abuse   Print page  |  Powered by Google Sites