Here’s a sparse set of instructions for the steps you need to take to configure SAS to access data from an Oracle data store and surface it through SAS Web Report Studio (as an example).
Note that once it’s in a SAS format this can be used in any SAS product, and therefore means you can do all sorts of analytics on it. Hence the VA screenshot.
Caveats – Please note the purpose of this is not to break down every area step by step, but more to highlight the various areas that you’ll need to configure to get it all working together. See this as an orchestrator’s guide – I’ll try to document the areas that are necessary for a full orchestra, but I won’t tell you how to play each instrument! As such, these steps assume a working Oracle database setup, as well as the necessary SAS servers ready and waiting to be used.
I might go into more detail for each particular step in later posts.
- Open Management Console
First off choose a SAS user who will access the Oracle data (SAS Demo User).
- Go to User Manager
- Right click a SAS user
- Go to Properties > Accounts
- Click “New”
- Create a new Authentication Domain called “MyAuthDomain” and enter your Oracle RDBMS main user’s login details (e.g. myUser)
- You’ve now tied a SAS user to an Oracle user for a specific domain
Next we create a server to represent where all the data is coming from (i.e. your MIE machine)
- Right click Server Manager
- Select “New Server”
- Select “Oracle Server”
- Enter a name (myserver)
- Set the “Associated Machine” to your SAS machine
- Set “Path” to the string you would use to connect to it if you were using mysql
- In other words, <ORACLE MACHINE>:<PORT>/<SERVICE NAME>
- e.g. ‘myoraclemachine.domain:1521/myservicename’
- Important – use single quotes around the whole thing
- Change Authentication Domain to “MyAuthDomain”
Now create a Library to represent a certain subset of your data – it’s like a logical grouping, and the library will be a lot more publicly accessible so the name must be good.
- Expand “Data Library Manager”
- Right Click “Libraries”
- Select “New Library”
- Select “Oracle Library”
- Choose a name (mytbls)
- Set the location to /Shared Data/<new folder of your choice> (create a new folder for your tables)
- Choose “SASApp”
- Set “Libref” to what your publically accessible name should be – it can only be 8 characters!
- Set “Database Server” to your server name (myserver)
- Set “Connection” to myserver (should be there already)
Register Library Tables
All you’ve done is create an empty library, pointing at your server. You need to actually choose the tables you want to use in this library.
- Click “Libraries”
- Right click your new Library (mytbls)
- Select “Register Tables”
- A dialog will appear telling you to log into your SAS machine… enter your SAS user details, NOT your oracle user details (always keep a close eye on which machine it’s asking you to log in to – other times it will ask for oracle credentials)
- Choose whatever tables you want to register in here
SAS Information Map Studio
Next we need to set up an Information Map to expose the view of the table(s) we want to use in reports.
- Open Information Map Studio
- Expand SASApp in the left hand side column to see your server
- Expand your server
- Choose any table or tables you want to use in your Information Map
- Choose any fields from those tables
- IMPORTANT – SAS will by default set the width of those fields to 32kb characters. Give these a more sensible limit otherwise this will break Web Report Studio (and potentially other things)
- Add any filters you want on those fields
- Make any Joins between tables you need
- Save your Information Map to Shared Data
SAS Web Report Studio
Now we have our data view exposed, we can build reports off of it.
- Open Web Report Studio – http://mysasmachine.domain:8080/SASWebReportStudio/
- Open the Report Wizard
- Select the Information Map you created as your data source
- etc etc
- Save the report